ScopedConsumer<TStore extends BaseStore<TState>, TState> class

The typedef TransitionCallback receive Widget Function(BuildContext context, Widget child,) ScopedConsumer it's the type Store

Inheritance

Constructors

ScopedConsumer({Key? key, dynamic distinct(TState state)?, bool filter(TState state)?, void onStateListener(BuildContext context, TState state)?, void onErrorListener(BuildContext context, dynamic error)?, void onLoadingListener(BuildContext context, bool isLoading)?, TStore? store, Widget onStateBuilder(BuildContext context, TState state)?, Widget onErrorBuilder(BuildContext context, dynamic error)?, Widget onLoadingBuilder(BuildContext context)?})
ScopedConsumer constructor class
const
ScopedConsumer.transition({Key? key, TStore? store, dynamic distinct(TState)?, bool filter(TState)?, TransitionCallback? transition, Widget onErrorBuilder(BuildContext, dynamic)?, Widget onLoadingBuilder(BuildContext)?, Widget onStateBuilder(BuildContext, TState)?, void onErrorListener(BuildContext, dynamic)?, void onLoadingListener(BuildContext, bool)?, void onStateListener(BuildContext, TState)?})
ScopedConsumer.transition it's a factory
factory

Properties

distinct → (dynamic Function(TState state)?)
The Function distinct it's the type dynamic and receive the param state it`s the type TState
final
filter → (bool Function(TState state)?)
The Function filter it's the type bool and receive the param state it`s the type TState
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onErrorBuilder → (Widget Function(BuildContext context, dynamic error)?)
The Function onErrorListener it's the type Widget and receive the params context it's the type BuildContext and error it`s the type.
final
onErrorListener → (void Function(BuildContext context, dynamic error)?)
The Function onErrorListener it's the type Widget and receive the params context it's the type BuildContext and error it`s the type dynamic
final
onLoadingBuilder → (Widget Function(BuildContext context)?)
The Function onLoadingListener it's the type Widget and receive the param context it`s the type BuildContext
final
onLoadingListener → (void Function(BuildContext context, bool isLoading)?)
The Function onLoadingListener it's the type Widget and receive the param context it`s the type BuildContext
final
onStateBuilder → (Widget Function(BuildContext context, TState state)?)
The Function onStateListener it's the type Widget and receive the params context it's the type BuildContext and state it`s the type TState
final
onStateListener → (void Function(BuildContext context, TState state)?)
The Function onStateListener it's the type Widget and receive the params context it's the type BuildContext and state it`s the type TState
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
store → TStore?
store it's the type TStore
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _ScopedConsumerState<TStore, TState>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited