addMessage method

GenericGame addMessage(
  1. GameMessage msg
)

Returns a copy of the GenericGame with the msg added to messages

Implementation

GenericGame addMessage(GameMessage msg) => copyWith(
      messages: messages.add(msg),
    );