pattern property

Pattern pattern
final

The final Pattern pattern; line is declaring a final variable pattern of type Pattern. This variable is used to store a regular expression pattern that matches the different text patterns that the NixyTextFieldController class supports, such as URLs, checkboxes, and code blocks. The regular expression pattern is created by joining the keys of the patterns map with the | character, which means "or" in regular expressions. The multiLine: true parameter is used to indicate that the regular expression should match across multiple lines. This pattern variable is used in the splitMapJoin method in the buildTextSpan method to split the text into different parts based on the regular expression pattern.

Implementation

final Pattern pattern;