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