RepeatRange<T> constructor
- T _value, [
- int? _bound
Creates a sequence repeating _value, optionally limited to _bound times.
Implementation
RepeatRange(this._value, [this._bound]) {
if (_bound != null && _bound < 0) {
throw ArgumentError('Bound cannot be negative.');
}
}