numFrames method
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;