update method

  1. @override
(TextModel, 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
(TextModel, Cmd?) update(Msg msg) {
  final (newModel, cmd) = super.update(msg);
  return (newModel as TextModel, cmd);
}