showError static method

void showError({
  1. int? duration,
  2. String? titleText,
  3. Widget? title,
  4. String? subtitleText,
  5. Widget? subtitle,
  6. bool showProgressBar = false,
  7. ToastificationCallbacks? callbacks,
})

显示错误通知

Implementation

static void showError({
  int? duration,
  String? titleText,
  Widget? title,
  String? subtitleText,
  Widget? subtitle,
  bool showProgressBar = false,
  ToastificationCallbacks? callbacks,
}) {
  _show(
    titleText: titleText,
    duration: duration,
    color: AppTheme.errorColor,
    backgroundColor: AppTheme.errorColorTertiary,
    title: title,
    subtitleText: subtitleText,
    subtitle: subtitle,
    showProgressBar: showProgressBar,
    callbacks: callbacks,
    type: ToastificationType.error,
  );
}