decode method
Future<PictureInfo>
decode(
- Uint8List? imageData,
- ColorFilter? colorFilter,
- String keyString, {
- PictureErrorListener? onError,
Implementation
Future<PictureInfo> decode(
Uint8List? imageData, ColorFilter? colorFilter, String keyString,
{PictureErrorListener? onError}) {
if (onError != null)
// ignore: invalid_return_type_for_catch_error
return decoder(imageData, colorFilter, keyString)..catchError(onError);
return decoder(imageData, colorFilter, keyString);
}