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

CodeController copywith method #92

Closed ahmet-ozberk closed 7 months ago

ahmet-ozberk commented 7 months ago

I need the copyWith method in CodeController to update the patternMap variable, can you add it?

BertrandBev commented 7 months ago

Can you submit a PR ?

ahmet-ozberk commented 7 months ago

I send it

BertrandBev commented 7 months ago

Thanks !

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 and a new pull request has been sent. Thank you.