progress method

double progress(
  1. Duration now
)

How far through this span now is, from 0 to 1.

Implementation

double progress(Duration now) => duration == Duration.zero
    ? 1
    : ((now - at).inMicroseconds / duration.inMicroseconds).clamp(0, 1);