warning method

String warning(
  1. Object? text
)

Renders text with the warning color.

Implementation

String warning(Object? text) =>
    copy().foreground(Colors.warning).render(text);