ScopedListener<TStore extends BaseStore<TState> , TState> class
ScopedListener it's the type <TStore extends Store<TError, TState>, TError extends Object, TState extends Object>
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ScopedListener
Constructors
- ScopedListener({Key? key, dynamic distinct(TState state)?, bool filter(TState state)?, void onState(BuildContext context, TState state)?, void onError(BuildContext context, dynamic error)?, void onLoading(BuildContext context, bool isLoadding)?, TStore? store, required Widget child})
-
ScopedListener constructor class
const
Properties
- child → Widget
-
The widget which will be rendered as a descendant of the ScopedListener.
final
- distinct → (dynamic Function(TState state)?)
-
The Function distinct it's the type
dynamic
and receive the param state it`s the typeTState
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
- onError → (void Function(BuildContext context, dynamic error)?)
-
The Function onError it's the type Widget and receive the params context it's the type BuildContext and
error it`s the type
dynamic
final - onLoading → (void Function(BuildContext context, bool isLoadding)?)
-
The Function onLoading it's the type Widget and receive the param context it`s the type BuildContext
final
- onState → (void Function(BuildContext context, TState state)?)
-
The Function onState 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(
) → _ScopedListenerState< 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