loadFile method

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

Load the image.

Implementation

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