builder property
The build strategy currently used by this builder.
The builder is provided with an AsyncSnapshot object whose AsyncSnapshot.connectionState property will be one of the following values:
-
ConnectionState.none: future is null. The AsyncSnapshot.data will be set to initialData, unless a future has previously completed, in which case the previous result persists.
-
ConnectionState.waiting: future is not null, but has not yet completed. The AsyncSnapshot.data will be set to initialData, unless a future has previously completed, in which case the previous result persists.
-
ConnectionState.done: future is not null, and has completed. If the future completed successfully, the AsyncSnapshot.data will be set to the value to which the future completed. If it completed with an error, AsyncSnapshot.hasError will be true and AsyncSnapshot.error will be set to the error object.
Implementation
final AsyncWidgetBuilder<T> builder