CachePolicy enum Null safety
Specifies interaction with the cached responses.
Constructors
- CachePolicy()
-
const
Values
- onlyNetwork → const CachePolicy
-
Always queries from the cloud.
- networkElseCache → const CachePolicy
-
Queries from the cloud first, if failed, it will queries from the cache instead.
Properties
Methods
-
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
Constants
-
values
→ const List<
CachePolicy> -
A constant List of the values in this enum, in order of their declaration.
[onlyNetwork, networkElseCache]