division method Null safety

double division(
  1. double s,
  2. double f
)

Divide the provided stop s by the provided animation factor f, claming between 0..1.

Implementation

static double division(double s, double f) => (s / f).clamp(0, 1);