of static method

Duration of(
  1. BuildContext context, [
  2. Duration step = fast
])

step where a change may move here, none at all where the platform asks for reduced motion: a change then lands at once.

Implementation

static Duration of(BuildContext context, [Duration step = fast]) =>
    isReduced(context) ? Duration.zero : step;