warning static method

void warning(
  1. BuildContext context,
  2. String message
)

Shows a warning toast (orange background with warning icon).

Implementation

static void warning(BuildContext context, String message) {
  show(
    context,
    message,
    backgroundColor: Colors.orange,
    textColor: Colors.white,
    icon: Icons.warning,
  );
}