BuildAsyncSnapshot<T> mixin

Protocol that builds 3-state async result from a Future, a Stream or a Request

  • Use buildFuture to consume async data from Future
  • Use buildStream to consume async data from Stream
  • Use buildRequest to consume async data from Request

By default, buildError invokes DefaultBuildActions.buildError buildLoading invokes DefaultBuildActions.buildLoading

Implemented types

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

buildAsyncSnapshot(BuildContext context, AsyncSnapshot<T> snapshot) Widget
Implementation of AsyncSnapShotBuilder for FutureBuilder or StreamBuilder, which builds view from AsyncSnapshot.
buildError(BuildContext context, Object error) Widget
Contract to to build view when error occurred
override
buildLoading(BuildContext context) Widget
Contract to to build view when data is being loaded
override
buildNoDataSource(BuildContext context) Widget
Contract to to build view when data source hasn't connected yet
override
buildValue(BuildContext context, T value) Widget
Contract to to build view when value is loaded
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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