resolve method
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());
}