LoadingBuilder class
Pass multiple Future/FutureOr/Null data and display loading or CircularProgressIndicator until all completions are completed.
Pass the target Future in futures.
In builder, you can specify the widget to be drawn after futures is completed.
If indicatorColor is specified, the color of CircularProgressIndicator can be changed when it is displayed when loading is not specified.
複数のFuture/FutureOr/Nullデータを渡してすべての完了を完了するまでloadingやCircularProgressIndicatorを表示します。
builderでfuturesが完了した後に描画するウィジェットを指定できます。
indicatorColorを指定するとloadingを指定しない場合にCircularProgressIndicatorを表示するときにその色を変えることができます。
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LoadingBuilder
- Available Extensions
Constructors
-
LoadingBuilder({Key? key, required List<
FutureOr?> futures, required Widget builder(BuildContext context), Color? indicatorColor, Widget? loading}) -
Pass multiple Future/FutureOr/Null data and display loading or CircularProgressIndicator until all completions are completed.
const
Properties
- builder → Widget Function(BuildContext context)
-
builder builder to build the widget to be drawn after futures is completed.
final
-
futures
→ List<
FutureOr?> -
Pass a list of Future,
FutureOr
, and Null to wait for.final - hashCode → int
-
The hash code for this object.
no setterinherited
- indicatorColor → Color?
-
You can change the color of the CircularProgressIndicator when it is displayed when loading is not specified.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loading → Widget?
-
Widget to display when waiting for futures.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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