update method

(GitDiffModel, Cmd?) update(
  1. Msg msg
)

Forwards a message to the underlying model.

Implementation

(GitDiffModel, Cmd?) update(Msg msg) {
  final prev = _model;
  final (next, cmd) = _model.update(msg);
  _model = next;
  if (!identical(prev, next)) {
    _notifyListeners();
  }
  return (next, cmd);
}