tick method

  1. @override
void tick(
  1. Duration elapsed
)
override

Implementation

@override
void tick(Duration elapsed) {
  if (duration == Duration.zero) {
    _scale = spec.end;
    return;
  }

  final rawProgress =
      (elapsed.inMicroseconds / duration.inMicroseconds).clamp(0.0, 1.0);
  final progress = curve.transform(rawProgress);
  _scale = spec.begin + ((spec.end - spec.begin) * progress);
}