decode method

Future<PictureInfo> decode(
  1. Uint8List? imageData,
  2. ColorFilter? colorFilter,
  3. String keyString, {
  4. 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);
}