Range constructor
Restricts the maximum size for a numeric type to min
and/or max
.
By default, both min
and max
are inclusive.
Implementation
const Range({
this.min,
this.max,
this.minExclusive = false,
this.maxExclusive = false,
});