ResourceState<K extends Object, V> class
- Inheritance
-
- Available Extensions
Constructors
-
ResourceState.initial(K? key, {required bool isLoading})
-
-
ResourceState.withError(Object error, {required K? key, required bool isLoading})
-
-
ResourceState.withValue(K key, V value, {required bool isLoading, required Source source})
-
-
ResourceState.withValueAndError(K key, V value, Object error, {required Source source, required bool isLoading})
-
Methods
-
copyWith({bool? isLoading, bool includeValue = true, bool includeError = true})
→ ResourceState<K, V>
-
override
-
copyWithError(Object error, {bool? isLoading, bool includeValue = true})
→ ResourceState<K, V>
-
override
-
copyWithValue(V value, {required Source source, bool? isLoading, bool includeError = true})
→ ResourceState<K, V>
-
override
-
map<N>(N callback(V value))
→ ResourceState<K, N>
-
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
override