getDecoder function

Function? getDecoder(
  1. String name
)

Returns the proper Decoder inferred from the file name.

Implementation

Function? getDecoder(String name) {
  final decoder = getDecoderForNamedImage(name);
  if (decoder == null) {
    return null;
  }
  return decoder.decodeImage;
}