isPlaying method

bool isPlaying()

Implementation

bool isPlaying() {
  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final result = player['isPlaying'.toJS];
      return (result as JSBoolean).toDart;
    } catch (e) {
      return false;
    }
  }
  return false;
}