load method
Implementation
void load(String url) async {
try {
this.texture = await ZKAssets.loadImage(path: url);
if (onLoad != null) onLoad!(url);
} catch (e) {
if (onError != null) onError!(e);
}
}
void load(String url) async {
try {
this.texture = await ZKAssets.loadImage(path: url);
if (onLoad != null) onLoad!(url);
} catch (e) {
if (onError != null) onError!(e);
}
}