LoadBuilder<T extends IPath> class

Widget that displays loading if no data has been loaded.

Inheritance

Constructors

LoadBuilder({String path, T task, WidgetBuilder empty, Color indicatorColor, Widget waiting(BuildContext context, T data), @required Widget builder(BuildContext context, T data)})
Widget that displays loading if no data has been loaded. [...]

Properties

builder Widget Function(BuildContext context, T data)
Builder when the task is completed.
final
empty WidgetBuilder
Builder when the data is empty.
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
indicatorColor Color
Loading indicator color.
final
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
path String
Data path.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
task → T
Task data.
final
waiting Widget Function(BuildContext context, T data)
Builder when waiting for a task.
final

Methods

build(BuildContext context) Widget
Build method. [...]
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() State<StatefulWidget>
Create a state. [...]
@protected, inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
didPop(BuildContext context) → void
Executed when the widget is pop. [...]
@mustCallSuper, @protected, inherited
didPopNext(BuildContext context) → void
Executed when the next widget is pop. [...]
@mustCallSuper, @protected, inherited
didPush(BuildContext context) → void
Executed when the widget is push. [...]
@mustCallSuper, @protected, inherited
didPushNext(BuildContext context) → void
Executed when the next widget is push. [...]
@mustCallSuper, @protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onLoad(BuildContext context) → void
Executed when the widget is loaded. [...]
@mustCallSuper, @protected, inherited
onPause(BuildContext context) → void
Executed when the widget is pause. [...]
@mustCallSuper, @protected, inherited
onQuit(BuildContext context) → void
Executed when the widget is quit. [...]
@mustCallSuper, @protected, inherited
onUnload(BuildContext context) → void
Executed when the widget is unloaded. [...]
@mustCallSuper, @protected, inherited
onUnpause(BuildContext context) → void
Executed when the widget is unpause. [...]
@mustCallSuper, @protected, inherited
provider(BuildContext context) List
provider: Save the object to UIValue. [...]
@mustCallSuper, @protected, inherited
rebuildable(BuildContext context) bool
Determines whether to build. [...]
@protected, 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
Returns 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
validateOnLoad(BuildContext context) String
Verification callback before loading. [...]
@protected, inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited