transformInternal method

  1. @override
double transformInternal(
  1. double t
)
override

Override this method to define the curve's behavior.

t is guaranteed to be in the range (0.0, 1.0) exclusive.

Implementation

@override
double transformInternal(double t) {
  final s = period / 4.0;
  t = t - 1.0;
  return -math.pow(2.0, 10.0 * t).toDouble() *
      math.sin((t - s) * (math.pi * 2.0) / period);
}