discontinuedPackage vector_graphics_plus has been discontinued and replaced by vector_graphics.

NetworkBytesLoader class

A controller for loading vector graphics data from over the network.

This loader does not cache bytes requested from the network.

Inheritance

Constructors

NetworkBytesLoader(Uri url, {Map<String, String>? headers, Client? httpClient})
Creates a new loading context for network bytes.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
headers → Map<String, String>?
The HTTP headers to use for the network request.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → Uri
The Uri of the resource to request.
final

Methods

cacheKey(BuildContext? context) → Object
Create an object that can be used to uniquely identify this asset and loader combination.
inherited
loadBytes(BuildContext? context) → Future<ByteData>
Load the byte data for a vector graphic binary asset.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override