ResourceProvider class final

A resource provider, for RuntimeHandle.setResourceProvider().

See mln_resource_provider in the C API reference.

Constructors

ResourceProvider({required ResourceProviderCallback callback, List<ResourceRoute> routes = const []})

Properties

callback → ResourceProviderCallback
final
hashCode → int
The hash code for this object.
no setterinherited
routes → List<ResourceRoute>
The requests that the provider serves. Without routes, it serves every network request.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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