Rate constructor

const Rate(
  1. int maximum,
  2. Duration period
)

Creates a rate limit.

Implementation

const Rate(this.maximum, this.period);