A new Flutter project.
void main() async {
final s.ByteData imageData =
await s.rootBundle.load('assets/your_image.png');
final imageInt8List = imageData.buffer.asUint8List();
final imageFormat =
ImageFormatHelper.imageFormatForImageUnit8List(
imageInt8List);
}