loadImage method

  1. @override
Future<Uint8List> loadImage()
override

Load the image.

Implementation

@override
Future<Uint8List> loadImage() async {
  final byteData = await rootBundle.load(path);
  return byteData.buffer.asUint8List();
}