loadUiImage static method
Implementation
static Future<ui.Image> loadUiImage(
String path, {
required int width,
required int height,
bool fromAsset = true,
}) async {
final Uint8List data = fromAsset ? await _readAssetByte(path) : await _readFileByte(path);
return toImage(data, width: width, height: height);
}