resolve method
Asynchronous method to resolve the resource and return the binary data.
Implementation
@override
Future<Uint8List> resolve() => image.then(
(value) => value.toByteData(format: ui.ImageByteFormat.png).then(
(value) => value!.buffer.asUint8List(),
),
);