finishLoading method
void
finishLoading()
Implementation
void finishLoading() {
if (!floating) {
return;
}
endLoading().then((_) {
if (!mounted) {
return;
}
// this line for patch bug temporary:indicator disappears fastly when load more complete
if (mounted) Scrollable.of(context)!.position.correctBy(0.00001);
WidgetsBinding.instance!.addPostFrameCallback((_) {
if (mounted && _position?.outOfRange == true) {
activity!.delegate.goBallistic(0);
}
});
setState(() {
floating = false;
});
});
}