Bloc<E, S> class
abstract
Base BLoC class to create blocs
Constructors
- Bloc(S initial)
- Add the initial state once
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initial → S
-
The initial state of this bloc taken from the implemented class
final
- initialState → S
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
S> -
Listenable stream
no setter
Methods
-
add(
E event) → void - On add callback implemented by the bloc child class
-
dispose(
) → void - Dispose method can call to override something
-
emit(
S state) → void - Emit the state if the controller is not closed
-
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