Rate.perHour constructor

Rate.perHour(
  1. int maximum
)

Creates a rate limit per hour.

Implementation

factory Rate.perHour(int maximum) => Rate(maximum, Duration(hours: 1));