CachedNetwork class
Constructors
- CachedNetwork({Directory? cacheDirectory, Dio? dio})
Properties
- cacheDirectory ↔ Directory?
-
getter/setter pair
- dio ↔ Dio?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fetch(
String url, {Duration? duration, String? method, bool reacquire = false}) → Future< String> - Use to fetch data from network or cache file.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited