text method

String text()

Returns the message text.

Implementation

String text() {
  return switch (raw) {
    String value => value,
    _ => utf8.decode(raw),
  };
}