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

Constructors

ClearComponentLoading({required String key})
Creates a ClearComponentLoading event.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
Identifier of the loading operation to clear.
final
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
toString() String
A string representation of this object.
inherited

Operators

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