Fetcher<C extends Content> class abstract

A fetcher with FetchApi for fetching and Controlled for control data.

Inheritance
Implemented types
Implementers

Constructors

Fetcher()
Default const constructor to allow extending this abstract class.
const

Properties

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(Uri reference) Future<C>
Fetch (read fully) content body from a resource identified by reference.
inherited
fetchBytes(Uri reference) Future<Uint8List>
Fetch content body as bytes from a resource identified by reference.
inherited
fetchJson(Uri reference, {Object? reviver(Object? key, Object? value)?}) Future
Fetch content body as JSON data from a resource identified by reference.
inherited
fetchStream(Uri reference) Future<C>
Fetch content as a stream from a resource identified by reference.
inherited
fetchText(Uri reference) Future<String>
Fetch content body as text from a resource identified by reference.
inherited
headers(Map<String, String> headers) Fetcher<C>
Returns a new controlled object of C with given headers applied to it.
inherited
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