imgAssets2Uint8List static method
Implementation
static Future<Uint8List> imgAssets2Uint8List(String path) async {
final byteData = await rootBundle.load('$path');
Uint8List resp = byteData.buffer
.asUint8List(byteData.offsetInBytes, byteData.lengthInBytes);
return resp;
}