onEnter property

void Function()? onEnter
getter/setter pair

Called whenever the enter/return key is pressed and the editor is in rich text view. There is currently no way to detect enter/return when the editor is in code view.

Note: The onChange callback will also be triggered at the same time as this callback, please design your implementation accordingly.

Implementation

void Function()? onEnter;