ignoreCase method
Enable or disable matching with ignoring case according to enable
flag.
Case sensitive matching is enabled by default.
Example: var regex = FluentRegex() .literal('a') .ignoreCase(); expect(regex.hasMatch('A'), true); expect(regex.hasMatch('a'), true);
Implementation
FluentRegex ignoreCase([bool enable = true]) =>
FluentRegex._copyWith(this, ignoreCase: enable);