subtraction method Null safety

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

Subtract the provided animation value f from the provided stop s, claming between 0..1.

Implementation

static double subtraction(double s, double f) => (s - f).clamp(0, 1);