loading_alert_dialog library

Functions

showLoadingDialog<T>({BuildContext context, WidgetBuilder builder, void computation(DialogPopCallback<T> pop, ErrorPopCallback error), void onPop(T result), void onError(dynamic error), bool isPlatformAware: true}) → void
Displays a platform aware dialog that either calls showCupertinoDialog or showDialog depending on current Platform, and runs indefinitely, while showing a Widget. [...]

Typedefs

DialogPopCallback<T>(T result) → void
Signature for callback that indicates the computation has completed and the dialog should pop with a result.
ErrorPopCallback(dynamic err) → void
Signature for callback that indicates an error happened and the dialog should pop with nothing, and fires an additional callback with optional error object.