YukaFileLoader class

A low level class for loading resources with Fetch, used internally by most loaders. It can also be used directly to load any file type that does not have a loader.

Note: The cache must be enabled using Cache.enabled = true; This is a global property and only needs to be set once to be used by all loaders that use FileLoader internally. Cache is a cache module that holds the response from each request made through this loader, so each file is requested once.

Constructors

YukaFileLoader()

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

fromAsset(String asset, {String? package}) Future<YukaFile?>
fromBytes(Uint8List bytes, [String? type, String? location]) Future<YukaFile>
fromFile(File file) Future<YukaFile>
fromNetwork(Uri uri) Future<YukaFile?>
fromPath(String filePath) Future<YukaFile?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unknown(dynamic url) Future<YukaFile?>

Operators

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