IsolatedJsonFetcher<T> class

Version of JsonFetcher that invokes converter in isolate.

Inheritance

Constructors

IsolatedJsonFetcher(JsonHttpClient client, FutureOr<T> converter(dynamic json))
const

Properties

converter FutureOr<T> Function(dynamic json)
Converter from json to object json will be decoded from string using jsonDecode
finalinherited
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, {dynamic nocache = false, dynamic allowErrorWhenCacheExists = false, Map<String, String>? headers, String? cacheUrl, String? body, bool usePost = false}) Stream<T>
by default, if cached version is available then errors will not be pushed to stream nocache skip cached version allowErrorWhenCacheExists throw errors even if cache is exists if cacheUrl is specified, then content will be cached under it
inherited
get(String url, {Map<String, String>? headers, String? body, bool usePost = false}) Future<T>
just get without caching
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String source) FutureOr<T>
implement me: returns object parsed from json
override
toString() String
A string representation of this object.
inherited

Operators

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