stop method

Future<void> stop()

Stops the current animation playback.

This will immediately stop the animation and reset the playback state. The animation can be restarted by calling playFile or playAsset again.

Example:

await controller.stop();

Implementation

Future<void> stop() async {
  await __channel.invokeMethod('stop');
}