numFrames method Null safety

  1. @override
int numFrames()
override

How many frames are available to be decoded. startDecode should have been called first. Non animated image files will have a single frame.

Implementation

@override
int numFrames() => exrImage != null ? exrImage!.parts.length : 0;