controller property

TextEditingController controller
getter/setter pair

Text Field Controller Contain all reg patterns to detect it when user write any RegExp and highlight it with our own style

Implementation

static TextEditingController controller = StyleableTextFieldController(
  styles: TextPartStyleDefinitions(
    definitionList: _regsHighlight.keys
        .map<TextPartStyleDefinition>((reg) => TextPartStyleDefinition(
              style: TextStyle(
                  color: Colors.white,
                  fontWeight: FontWeight.bold,
                  backgroundColor: _regsHighlight[reg]),
              pattern: reg.pattern,
            ))
        .toList(),
  ),
);