Rate.perSecond constructor

Rate.perSecond(
  1. int maximum
)

Creates a rate limit per second.

Implementation

factory Rate.perSecond(int maximum) => Rate(maximum, Duration(seconds: 1));