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