FutureBuilder<T> class

Inheritance

Constructors

FutureBuilder({Key? key, Future<T>? future, T? initialData, required AsyncWidgetBuilder<T> builder})
Creates a widget that builds itself based on the latest snapshot of interaction with a Future.
const

Properties

builder AsyncWidgetBuilder<T>
The build strategy currently used by this builder.
final
future Future<T>?
The asynchronous computation to which this builder is currently connected, possibly null.
final
hashCode int
The hash code for this object.
no setterinherited
initialData → T?
The data that will be used to create the snapshots provided until a non-null future has completed.
final
key Key?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement(ContextRequest request, GetSocket? getSocket) StatefulElement
Inflates this configuration to a concrete instance. A given widget can be included in the tree zero or more times. In particular a given widget can be placed in the tree multiple times. Each time a widget is placed in the tree, it is inflated into an Element, which means a widget that is incorporated into the tree multiple times will be inflated multiple times.
inherited
createState() State<FutureBuilder<T?>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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