pause method

bool pause()

Implementation

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