LoadingDialog class
A widget that displays a full-screen loading dialog with a centered
CircularProgressIndicator. The dialog prevents dismissal unless
explicitly closed, providing a visual indicator for ongoing background
processes.
This class is designed to be used for showing and hiding a loading indicator when performing time-consuming tasks (e.g., API calls, database operations).
Constructors
- LoadingDialog({required BuildContext buildContext})
-
Constructor for
LoadingDialog.
Properties
- buildContext → BuildContext
-
The
BuildContextof the parent widget.final - dialogContext ↔ BuildContext?
-
Holds the
BuildContextof the dialog for managing its dismissal.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closeLoadingDialog(
) → void - Closes the loading dialog.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showLoadingDialog(
) → void - Displays the loading dialog.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited