update method

Cmd? update(
  1. Msg msg
)

Forwards a message to the textarea model.

Implementation

Cmd? update(Msg msg) {
  final before = _TextAreaControllerSnapshot.capture(_model);
  final (_, cmd) = _model.update(msg);
  if (!before.matches(_model)) {
    notifyListeners();
  }
  return cmd;
}