totalFrames method

double? totalFrames()

Implementation

double? totalFrames() {
  if (dotLottiePlayer == null) {}

  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final result = player['totalFrames'.toJS];

      return (result as JSNumber).toDartDouble;
    } catch (e) {
      return null;
    }
  }
  return null;
}