animateOverFirst static method

double animateOverFirst(
  1. double value, {
  2. double percent = 1.0,
})

Only displays a value over its final percentage. The final split is outputted in values

Implementation

static double animateOverFirst(double value, {double percent = 1.0}){
  assert(percent != null && percent >= 0 && percent <= 1.0);
  assert(value != null && value >= 0 && value <= 1.0);

  return min(1.0, value / percent);
}