fetchResource method

  1. @override
Future<Uint8List?> fetchResource(
  1. String src
)

Fetches the image resource from the file system.

Implementation

@override
Future<Uint8List?> fetchResource(String src) async {
  src = "$pathPrefix$src";
  File file = File(src);
  Uint8List bytes = await file.readAsBytes();
  return bytes;
}