error static method

void error(
  1. BuildContext context,
  2. String? message, [
  3. String? title,
  4. TError? error,
])

Shows an error toast.

Implementation

static void error(BuildContext context, String? message, [String? title, TError? error]) {
  show(context, message, title: title, icon: HugeIcons.strokeRoundedAlertCircle, color: context.theme.danger, error: error);
}