transferAssetImage method

Future<Uint8List> transferAssetImage(
  1. String assetName
)

Implementation

Future<Uint8List> transferAssetImage(String assetName) async {
  final ByteData bytes = await localRootBundle.load(assetName);
  final Uint8List list = bytes.buffer.asUint8List();
  return list;
}