loopCount method

int? loopCount()

Implementation

int? loopCount() {
  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final result = player['loopCount'.toJS];
      return (result as JSNumber).toDartInt;
    } catch (e) {
      return null;
    }
  }
  return null;
}