update method
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);
}