stop method

bool stop()

Implementation

bool stop() {
  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final stopMethod = player['stop'.toJS] as JSFunction;
      stopMethod.callAsFunction(player);
      return true;
    } catch (e) {
      return false;
    }
  }
  return false;
}