BuildResult<T> mixin
Protocol that builds 2-state sync result, which could be either a value or an error BuildResult implements BuildValue
BuildResult is designed to be a conceptual protocol, which would be rarely used directly.
- To build a value from ValueListenable, use BuildValueListenable
- To build 2-state sync result from ResultListenable, consider use BuildResultListenable
- To build 3-state async result from Request, Future or Stream, consider use BuildAsyncSnapshot
- Implemented types
-
- BuildValue<
T>
- BuildValue<
- Mixin Applications
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
-
buildError(
BuildContext context, Object error) → Widget -
Contract to to build view when
error
occurred -
buildValue(
BuildContext context, T value) → Widget -
Contract to to build view when
value
is loadedinherited -
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