IStateManager<S> class abstract interface

The contract a page's state manager must satisfy to be driven by a base page.

Base pages need two things from their B type parameter at once: it must be providable to BlocProvider<B> (hence StateStreamableSource), and it must accept the wiring the delegate performs. Dart has no intersection type bounds, so B extends StateStreamableSource<S> & BaseDelegate<S> cannot be written — this interface unifies both requirements into a single bound and removes the di<B>() as dynamic cast that previously stood in for it.

MainBloc and MainCubit implement this; consumers get it by extending either, and are not expected to implement it directly.

Implemented types
Implementers

Properties

commonBloc CommonBloc
Injects the app-wide loading-state bloc.
no getter
hashCode int
The hash code for this object.
no setterinherited
isClosed bool
Whether the object is closed.
no setterinherited
Injects the navigator, or null when no router is registered.
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → S
The current state.
no setterinherited
stream Stream<S>
The current stream of states.
no setterinherited

Methods

close() FutureOr<void>
Closes the current instance. The returned future completes when the instance has been closed.
inherited
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