BaseBloc class abstract
Base class for business logic components.
This is inspired by the BLoC pattern but not quite the same. A bloc provides methods that trigger asynchronous procedures which in turn publish state changes through stream controllers.
A bloc can provide multiple streams to the UI layer.
Constructors
- BaseBloc()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
initialize(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pagedCollection<
Item> (Collection< Item> collection) → PagedCollectionController<Item> - Instantiates an auto-disposing PagedCollectionController.
-
property<
TState> ([PropertyState< TState> initial = const LoadingState()]) → BehaviorSubject<PropertyState< TState> > -
Instantiates an auto-disposing
BehaviourSubject
with aPropertyState
. -
sequentialCollection<
Item> (Collection< Item> collection, {int chunkSize = 25}) → SequentialCollectionController<Item> - Instantiates an auto-disposing SequentialCollectionController.
-
stream<
TState> () → StreamController< TState> - Instantiates an auto-disposing StreamController.
-
sub(
StreamSubscription subscription) → void - Register a StreamSubscription for auto-disposal.
-
subject<
TState> ([TState? initial]) → BehaviorSubject< TState> -
Instantiates an auto-disposing
BehaviourSubject
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited