generateNextDuration method

Duration generateNextDuration(
  1. {double minDurationMillis,
  2. double maxDurationMillis}
)

Implementation

Duration generateNextDuration(
    {double minDurationMillis, double maxDurationMillis}) {
  return Duration(
      milliseconds:
          _randomValue(minDurationMillis, maxDurationMillis).floor());
}