loop method

TickerFuture loop({
  1. int? count,
  2. bool reverse = false,
  3. double? min,
  4. double? max,
  5. Duration? period,
})

Implementation

TickerFuture loop({
  int? count,
  bool reverse = false,
  double? min,
  double? max,
  Duration? period,
}) {
  assert(count == null || count >= 0);
  assert(period != null || duration != null);

  min ??= lowerBound;
  max ??= upperBound;
  period ??= duration;

  if (count == 0) return animateTo(min, duration: Duration.zero);

  return repeat(
    min: min,
    max: max,
    reverse: reverse,
    period: period,
    count: count,
  );
}