Closed Kizat closed 2 years ago
the pagingController doesnt become null
when it is disposed, so ?
doesnt help here.
An easy way of removing this error is by checking the mounted
property of your stateful widget.
or you can ignore the error;
Flutter for some reason didnt find it necessary to include any way of checking whether a changenotifier is disposed or not, so this entire error is just non-sensical, especially since they have a value to keep track of disposal, but its private.
Thanks for the amazing answer @clragon .
pagingController?.appendLastPage(products!.toList());
worked after callingdispose
but?
didn't help and gave an error