numFrames method

  1. @override
int numFrames()
override

How many frames are available to decode?

You should have prepared the decoder by either passing the file bytes to the constructor, or calling getInfo.

Implementation

@override
int numFrames() => (_info != null) ? _info!.numFrames : 0;