FastNavigationSplitViewBloc class
- Inheritance
-
- Object
- Bloc<
FastNavigationSplitViewState> - BidirectionalBloc<
FastNavigationSplitViewBlocEvent< FastItem> , FastNavigationSplitViewState> - FastNavigationSplitViewBloc
Constructors
Properties
- addEvent → dynamic Function(BlocEvent)
-
Notifies the BloC of a new event which triggers
mapEventToState
. Ifdispose
has already been called, any calls todispatchEvent
will be ignored and will not result in any state changes.no setterinherited - blocState ↔ FastNavigationSplitViewState
-
getter/setter pairinherited
-
cancelableOperations
↔ List<
CancelableOperation> -
getter/setter pairinherited
- closed ↔ bool
-
getter/setter pairinherited
- currentState → FastNavigationSplitViewState
-
The current BloC's state.
no setterinherited
- dispatchState → dynamic Function(FastNavigationSplitViewState)
-
Notifies the BloC of a new state which triggers
onData
.no setterinherited -
errorController
→ PublishSubject<
BlocError> -
finalinherited
-
eventSubscriptions
↔ StreamSubscription<
FastNavigationSplitViewState> -
getter/setter pairinherited
-
externalEventController
→ PublishSubject<
FastNavigationSplitViewBlocEvent< FastItem> > -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialState → FastNavigationSplitViewState?
-
finalinherited
-
initialStateBuilder
→ BlocStateBuilder<
FastNavigationSplitViewState> ? -
finalinherited
-
internalEventController
→ PublishSubject<
BlocEvent> -
finalinherited
- isClosed → bool
-
Whether the BloC is closed for dispatching more events.
no setterinherited
- isInitialized ↔ bool
-
getter/setter pairinherited
- isInitializing ↔ bool
-
getter/setter pairinherited
-
onData
→ Stream<
FastNavigationSplitViewState> -
Called whenever the BloC's state is updated.
no setterinherited
-
onError
→ Stream<
BlocError> -
Called whenever the BloC's state is updated.
no setterinherited
-
onEvent
→ Stream<
FastNavigationSplitViewBlocEvent< FastItem> > -
Called whenever an event is added to the BloC.
no setterinherited
-
publishers
→ List<
PublishSubject> -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stateController
→ BehaviorSubject<
FastNavigationSplitViewState> -
finalinherited
- subxList → SubxList
-
finalinherited
- subxMap → SubxMap
-
finalinherited
Methods
-
canClose(
) → bool -
Allow to override the close method.
inherited
-
close(
) → void -
Closes the event and state Streams. This method should be called when
a BloC is no longer needed.
inherited
-
debounce(
BlocDebounceCallback< BlocEvent> function, {Duration delay = const Duration(milliseconds: 300)}) → BlocDebounceCallback<BlocEvent> -
Creates a debounced function that only invokes
function
after adelay
.inherited -
debounceEvent(
BlocDebounceEventCallback< FastNavigationSplitViewBlocEvent< function, {Duration delay = const Duration(milliseconds: 300)}) → BlocDebounceEventCallback<FastItem> >FastNavigationSplitViewBlocEvent< FastItem> > -
Creates a debounced function that only invokes
function
after adelay
.inherited -
getInitialState(
) → FastNavigationSplitViewState -
Tries to retreive the initial BloC's state.
inherited
-
handleInternalError(
dynamic error) → void -
Handles internal errors.
inherited
-
initState(
) → FastNavigationSplitViewState -
Optional callback method to initialize the BloC's state.
inherited
-
mapEventToState(
FastNavigationSplitViewBlocEvent< FastItem> event) → Stream<FastNavigationSplitViewState> -
Must be implemented when a class extends BidirectionalBloc.
mapEventToState
is called whenever an event is added and will convert that event into a new BloC state. It can yield zero, one or several states for an event.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
performCancellableAsyncOperation<
T> (Future< T> opreation) → Future<T?> -
inherited
-
setState(
FastNavigationSplitViewState nextState) → void -
Set the BloC state.
inherited
-
shouldProcessEventInOrder(
) → bool -
Determines whether a bloc ensures all
events
are processed in the order in which they are received.inherited -
throttle(
BlocThrottleCallback< BlocEvent> function, {Duration duration = const Duration(milliseconds: 300)}) → BlocThrottleCallback<BlocEvent> -
Creates a throttled function that only invokes
function
at most once per everyduration
.inherited -
throttleEvent(
BlocThrottleEventCallback< FastNavigationSplitViewBlocEvent< function, {Duration duration = const Duration(milliseconds: 300)}) → BlocThrottleEventCallback<FastItem> >FastNavigationSplitViewBlocEvent< FastItem> > -
Creates a throttled function that only invokes
function
at most once per everyduration
.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
transformError(
dynamic error, StackTrace stackTrace) → BlocError? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited