OfflineFirstApi class
Constructors
- OfflineFirstApi({Duration defaultCacheTtl = const Duration(minutes: 10)})
Properties
- defaultCacheTtl → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
String url, {bool useCache = true, Duration? ttl}) → Future< ApiResponse> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
String url, {dynamic body, bool useCache = false, Duration? ttl}) → Future< ApiResponse> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited