update method

  1. @override
(PauseModel, Cmd?) update(
  1. Msg msg
)
override

Updates the component state in response to a message.

Returns the updated component (often this) and an optional command.

Implementation

@override
(PauseModel, Cmd?) update(Msg msg) {
  if (msg is KeyMsg) {
    return (this, Cmd.quit());
  }
  return (this, null);
}