startOfLine method
Mark the expression to start at the beginning of the line
Enable or disable the expression to start at the beginning of the line using enable
flag
Example: var regex = FluentRegex() .startOfLine() .literal('abc'); expect(regex.hasMatch('abc12'), true); expect(regex.hasMatch('12abc'), false);
Implementation
FluentRegex startOfLine([bool enable = true]) =>
FluentRegex._copyWith(this, startOfLine: enable);