Quantity.atMost constructor
const
Quantity.atMost(
- int max
Example: var regex = FluentRegex().literal('a', Quantity.atMost(2)); expect(regex.hasMatch(''), true); expect(regex.hasMatch('a'), true); expect(regex.hasMatch('aa'), true); expect(regex.findFirst('aaa'), 'aa');
Implementation
const Quantity.atMost(int max) : this._('{0,$max}');