I think the onChanged callback should've been on CodeField and not CodeController.
CodeController extends TextEditingController and it's possible to use addListener there.
The issue for me is this callback fires on every text change, focus change etc. onChanged on CodeField fires only if the text changes, which may in many cases be more useful.
I think the
onChanged
callback should've been onCodeField
and notCodeController
.CodeController
extendsTextEditingController
and it's possible to useaddListener
there. The issue for me is this callback fires on every text change, focus change etc.onChanged
onCodeField
fires only if the text changes, which may in many cases be more useful.