FutureManagerBuilder<T extends Object> class

A widget that build base on the state a FutureManager

Inheritance

Constructors

FutureManagerBuilder({Key? key, required FutureManager<T> futureManager, required Widget ready(BuildContext context, T data), Widget? loading, ManagerErrorBuilder? error, ManagerErrorListener? onError, Widget onRefreshing()?, void onData(T data)?, void onReadyOnce(T data)?, Widget customBuilder(Widget child)?})
const

Properties

customBuilder → (Widget Function(Widget child)?)
Custom builder that mostly use from animation
final
error ManagerErrorBuilder?
A widget to show when FutureManager state is error
final
futureManager FutureManager<T>
A required FutureManager that this widget depends on
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loading Widget?
A widget to show when FutureManager state is loading
final
onData → (void Function(T data)?)
A callback function that call when FutureManager state has data
final
onError ManagerErrorListener?
A callback function that call when FutureManager state is error
final
onReadyOnce → (void Function(T data)?)
A callback function that call when FutureManager state has data once
final
onRefreshing → (Widget Function()?)
A widget to show on top of this widget when refreshing
final
ready Widget Function(BuildContext context, T data)
A widget to show when FutureManager has a data
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<FutureManagerBuilder<T>>
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