error method

String error(
  1. String text
)

Applies error color to text.

Implementation

String error(String text) => '${theme.error}$text${theme.reset}';