resolve method

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

Asynchronous method to resolve the resource and return the binary data.

Implementation

@override
Future<Uint8List> resolve() {
  // Load the asset and convert it to Uint8List
  return rootBundle.load(asset).then((value) => value.buffer.asUint8List());
}