StateSnapshot<V> class

Implementers
Available Extensions

Constructors

StateSnapshot.loading()
StateSnapshot.notLoading()
StateSnapshot.withError(Object error, {required bool isLoading})
StateSnapshot.withValue(V value, {required bool isLoading, required Source source})
StateSnapshot.withValueAndError(V value, Object error, {required Source source, required bool isLoading})

Properties

error Object?
final
hasError bool
no setter
hashCode int
The hash code for this object.
no setterinherited
hasValue bool
no setter
isLoading bool
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Source?
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
value → V?
final

Methods

copyWith({bool? isLoading, bool includeValue = true, bool includeError = true}) StateSnapshot<V>
copyWithError(Object error, {bool? isLoading, bool includeValue = true}) StateSnapshot<V>
copyWithValue(V value, {required Source source, bool? isLoading, bool includeError = true}) StateSnapshot<V>
map<N>(N callback(V value)) StateSnapshot<N>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.

Operators

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