dismiss method
Implementation
void dismiss({bool animation = true}) async {
if (animation) {
_TopFloatingWidgetState? loadingContainerState = key?.currentState;
if (loadingContainerState != null) {
final Completer<void> completer = Completer<void>();
loadingContainerState.dismiss(completer);
completer.future.then((value) {
_remove();
});
return;
}
}
_remove();
}