BertrandBev / code_field

A customizable code text field supporting syntax highlighting
https://bertrandbev.github.io/code_field/
MIT License
232 stars 61 forks source link

Update code_controller.dart #95

Open ahmet-ozberk opened 7 months ago

ahmet-ozberk commented 7 months ago

The error that the patternMap variable is not updated is not resolved with the copyWith method. The source of the error is line 86: patternList.addAll(patternMap!.keys.map((e) => r'($e)')); the patternMap variable could not be updated because r'($e)' was written as '($e)' in this line. The error has been fixed.