DFAssetsLoader class

资源加载和缓存管理

Constructors

DFAssetsLoader()

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

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

Static Methods

clear(String file) → void
从Cache删除文件
clearCache() → void
清空缓存
loadImage(String src) Future<Image>
读取图片
loadJson(String src) Future<Map<String, dynamic>>
读取Json文件
loadText(String src) Future<String>
读取文本文件