load static method
Implementation
static Future<ui.Image> load(String asset) async {
ByteData data = await rootBundle.load(asset);
ui.Codec codec = await ui.instantiateImageCodec(data.buffer.asUint8List());
ui.FrameInfo frameInfo = await codec.getNextFrame();
return frameInfo.image;
}