ClearComponentLoading class
Force-clears a loading key regardless of how many operations hold it.
SetComponentLoading with isLoading: false decrements by one, which
cannot clear a key two operations are holding. This event exists for the
safety timeout, which must be able to dismiss a stuck spinner outright.
Prefer paired SetComponentLoading events in normal code — a force-clear hides a spinner whose operations are still running.
Example:
commonBloc.add(const ClearComponentLoading(key: 'data_fetch'));
- Inheritance
-
- Object
- MainBlocEvent
- CommonEvent
- ClearComponentLoading
Constructors
- ClearComponentLoading({required String key})
-
Creates a ClearComponentLoading event.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited