ScreenLoadingController class

The ScreenLoadingController manages the loading state using a ValueNotifier. It provides methods to start and stop the loading process, which is listened to by other widgets to display or hide the loading indicator.

Constructors

ScreenLoadingController()

Properties

hashCode → int
The hash code for this object.
no setterinherited
isLoading → ValueNotifier<bool>
A getter to access the current loading state. Returns true if the loading indicator is active, false otherwise.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startLoading() → void
Starts the loading process by setting the loading state to true. This triggers the display of the loading indicator in the UI.
stopLoading() → void
Stops the loading process by setting the loading state to false. This removes the loading indicator from the UI.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited