BertrandBev / code_field

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

Delete CodeController.onChange #65

Closed alexeyinkin closed 1 year ago

alexeyinkin commented 2 years ago

CodeController.onChange can be replaced with

controller.addListener(() {
  final text = controller.rawText;
});

If we delete onChange(), the benefits are:

@BertrandBev still you added onChange after rawText, so I wander what was the motivation for it. Are you OK with deleting it in the next breaking release?

BertrandBev commented 1 year ago

Yes, it makes total sense!