FastMediaLayoutBloc class
- Inheritance
-
- Object
- Bloc<
FastMediaLayoutBlocState> - BidirectionalBloc<
FastMediaLayoutBlocEvent, FastMediaLayoutBlocState> - FastMediaLayoutBloc
Constructors
- FastMediaLayoutBloc({FastMediaLayoutBlocState? initialState})
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 ↔ FastMediaLayoutBlocState
-
getter/setter pairinherited
-
cancelableOperations
↔ List<
CancelableOperation> -
getter/setter pairinherited
- closed ↔ bool
-
getter/setter pairinherited
- currentState → FastMediaLayoutBlocState
-
The current BloC's state.
no setterinherited
- dispatchState → dynamic Function(FastMediaLayoutBlocState)
-
Notifies the BloC of a new state which triggers
onData
.no setterinherited -
errorController
→ PublishSubject<
BlocError> -
finalinherited
-
eventSubscriptions
↔ StreamSubscription<
FastMediaLayoutBlocState> -
getter/setter pairinherited
-
externalEventController
→ PublishSubject<
FastMediaLayoutBlocEvent> -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialState → FastMediaLayoutBlocState?
-
finalinherited
-
initialStateBuilder
→ BlocStateBuilder<
FastMediaLayoutBlocState> ? -
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<
FastMediaLayoutBlocState> -
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<
FastMediaLayoutBlocEvent> -
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<
FastMediaLayoutBlocState> -
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< FastMediaLayoutBlocEvent> function, {Duration delay = const Duration(milliseconds: 300)}) → BlocDebounceEventCallback<FastMediaLayoutBlocEvent> -
Creates a debounced function that only invokes
function
after adelay
.inherited -
getInitialState(
) → FastMediaLayoutBlocState -
Tries to retreive the initial BloC's state.
inherited
-
handleInternalError(
dynamic error) → void -
Handles internal errors.
inherited
-
initState(
) → FastMediaLayoutBlocState -
Optional callback method to initialize the BloC's state.
inherited
-
mapEventToState(
FastMediaLayoutBlocEvent event) → Stream< FastMediaLayoutBlocState> -
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(
FastMediaLayoutBlocState 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< FastMediaLayoutBlocEvent> function, {Duration duration = const Duration(milliseconds: 300)}) → BlocThrottleEventCallback<FastMediaLayoutBlocEvent> -
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