Options of Animation.apngEncoder
Use APNGEncodeOptions, with AnimationOptions.loopCount: this will be removed in 4.0
Options of Animation.apngEncoder