BrixFlow<S> class abstract

Base of every brix flow: holds one immutable state S and tells listeners when it changes.

Pure Dart, so any state library can follow it: GetX copies state into .obs, a Cubit emits it, a Riverpod notifier sets it, a widget calls setState. Listen to changes; read state for the current value.

Implementers

Constructors

BrixFlow(S _state)

Properties

changes → Stream<S>
Every new state, delivered right away (synchronously).
no setter
hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → S
no setter

Methods

dispose() → Future<void>
Stops all listeners. Call it when the screen that owns the flow closes.
emit(S state) → void
Sets a new state. For subclasses only; ignored after dispose.
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