SCacheClient class

Implemented types
Annotations
  • @sealed

Constructors

SCacheClient({String? getCache(Uri, Map<String, String>) = _getCacheDmy, String? getPostCache(Uri, Object, Map<String, String>) = _getPostCacheDmy, Uint8List? getBinCache(Uri, Map<String, String>) = _getBinCacheDmy})

Properties

getBinCache Uint8List? Function(Uri, Map<String, String>)
getter/setter pairoverride
getCache String? Function(Uri, Map<String, String>)
getter/setter pairoverride
getPostCache String? Function(Uri, Object, Map<String, String>)
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setBinCache ↔ void Function(Uri, Map<String, String>, Uint8List, Duration?)
getter/setter pairoverride
setCache ↔ void Function(Uri, Map<String, String>, String, Duration?)
getter/setter pairoverride
setPostCache ↔ void Function(Uri, Object, Map<String, String>, String, Duration?)
getter/setter pairoverride

Methods

get(String url, {bool readCache = true, bool writeCache = true, Duration? ttl, Map<String, String> headers = const {}, String defaultCharset(List<int>)?, String forcedCharset(List<int>)?}) Future<String>
override
getBin(String url, {bool readCache = true, bool writeCache = true, Duration? ttl, Map<String, String> headers = const {}}) Future<Uint8List>
override
getBinUri(Uri url, {bool readCache = true, bool writeCache = true, Duration? ttl, Map<String, String> headers = const {}}) Future<Uint8List>
override
getUri(Uri url, {bool readCache = true, bool writeCache = true, Duration? ttl, Map<String, String> headers = const {}, String defaultCharset(List<int>)?, String forcedCharset(List<int>)?}) Future<String>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String url, Object body, {Map<String, String> headers = const {}, bool readCache = true, bool writeCache = true, Duration? ttl, String defaultCharset(List<int>)?, String forcedCharset(List<int>)?}) Future<String>
override
postUri(Uri url, Object body, {Map<String, String> headers = const {}, bool readCache = true, bool writeCache = true, Duration? ttl, String defaultCharset(List<int>)?, String forcedCharset(List<int>)?}) Future<String>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited