Message.fallback constructor

Message.fallback(
  1. String? text,
  2. Message fallback
)

If the given text is null, it falls back to the provided fallback instance.

Implementation

factory Message.fallback(String? text, Message fallback) =>
    text == null ? fallback : StaticMessage(text);