showError static method

void showError({
  1. required String message,
  2. String? title,
  3. Duration? toastDuration,
  4. BuildContext? context,
  5. bool permanent = false,
  6. List<GrxToastAction>? actions,
})

Implementation

static void showError({
  required String message,
  String? title,
  Duration? toastDuration,
  BuildContext? context,
  bool permanent = false,
  List<GrxToastAction>? actions,
}) => _show(
  message: message,
  icon: _getIcon(GrxIcons.cancel),
  backgroundColor: GrxColors.error,
  title: title,
  toastDuration: toastDuration,
  context: context,
  permanent: permanent,
  actions: actions,
);