repetitionCount property Null safety

int repetitionCount

Number of times to repeat the animation.

  • 0 when the animation should be played once.
  • -1 for infinity repetitions.

Implementation

int get repetitionCount => _cachedRepetitionCount ??= _repetitionCount;