requestOriginal static method
Requests the original image data for a given
identifier
.
This method is used by the asset class, you should not invoke it manually. For more info refer to Asset class docs.
The actual image data is sent via BinaryChannel.
Implementation
static Future<bool?> requestOriginal(String? identifier, quality) async {
try {
bool? ret =
await _channel.invokeMethod("requestOriginal", <String, dynamic>{
"identifier": identifier,
"quality": quality,
});
return ret;
} on PlatformException catch (e) {
switch (e.code) {
case "ASSET_DOES_NOT_EXIST":
throw AssetNotFoundException(e.message!);
default:
throw e;
}
}
}