ZKAssets class
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
Static Methods
-
dispose()
→ void
-
-
getAsset(String key)
→ dynamic
-
-
getPath(String? path, [String? baseUrl])
→ String?
-
-
getType(dynamic texture)
→ String?
-
-
loadAltas({String? json, String? key, String? image, String? baseUrl, Function? onLoad, Function? onError, bool cache = true})
→ Future<Atlas>
-
/////////////////////////////////////////////////////////
-
loadAssetImage(String path)
→ Future<Image>
-
-
loadByte(String path)
→ Future<ByteData>
-
/////////////////////////////////////////////////////////
-
loadImage({dynamic path, dynamic image, dynamic url, String? baseUrl, String? key, Function? onLoad, Function? onError, bool cache = true})
→ Future<ImgTexture>
-
/////////////////////////////////////////////////////////
-
loadJson({String? path, String? key, String? baseUrl, Function? onLoad, Function? onError, bool parse = true, bool cache = true})
→ Future<Map<String, dynamic>>
-
-
loadSpriteSheet({String? key, Size? size, dynamic width, dynamic height, String? image, String? baseUrl, Function? onLoad, Function? onError, bool cache = true})
→ Future<SpriteSheet>
-
/////////////////////////////////////////////////////////
-
loadString(String path)
→ Future<String>
-
-
preload({Map? urls, String? baseUrl, int parallel = 8, Function? onLoad, Function? onProgress, Function? onError})
→ void
-
/////////////////////////////////////////////////////////