getDecoder function
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;
}