FastAppLoaderBloc class

Inheritance

Constructors

FastAppLoaderBloc({FastAppLoaderBlocState? initialState})
factory

Properties

addEvent → dynamic Function(BlocEvent)
Notifies the BloC of a new event which triggers mapEventToState. If dispose has already been called, any calls to dispatchEvent will be ignored and will not result in any state changes.
no setterinherited
blocState FastAppLoaderBlocState
getter/setter pairinherited
cancelableOperations List<CancelableOperation>
getter/setter pairinherited
closed bool
getter/setter pairinherited
currentState FastAppLoaderBlocState
The current BloC's state.
no setterinherited
dispatchState → dynamic Function(FastAppLoaderBlocState)
Notifies the BloC of a new state which triggers onData.
no setterinherited
errorController → PublishSubject<BlocError>
finalinherited
eventSubscriptions StreamSubscription<FastAppLoaderBlocState>
getter/setter pairinherited
externalEventController → PublishSubject<FastAppLoaderBlocEvent>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
initialState FastAppLoaderBlocState?
finalinherited
initialStateBuilder → BlocStateBuilder<FastAppLoaderBlocState>?
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<FastAppLoaderBlocState>
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<FastAppLoaderBlocEvent>
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<FastAppLoaderBlocState>
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 a delay.
inherited
debounceEvent(BlocDebounceEventCallback<FastAppLoaderBlocEvent> function, {Duration delay = const Duration(milliseconds: 300)}) → BlocDebounceEventCallback<FastAppLoaderBlocEvent>
Creates a debounced function that only invokes function after a delay.
inherited
getInitialState() FastAppLoaderBlocState
Tries to retreive the initial BloC's state.
inherited
handleInternalError(dynamic error) → void
Handles internal errors.
inherited
initState() FastAppLoaderBlocState
Optional callback method to initialize the BloC's state.
inherited
mapEventToState(FastAppLoaderBlocEvent event) Stream<FastAppLoaderBlocState>
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(FastAppLoaderBlocState 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 every duration.
inherited
throttleEvent(BlocThrottleEventCallback<FastAppLoaderBlocEvent> function, {Duration duration = const Duration(milliseconds: 300)}) → BlocThrottleEventCallback<FastAppLoaderBlocEvent>
Creates a throttled function that only invokes function at most once per every duration.
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