showNotificationError static method

void showNotificationError({
  1. required String title,
  2. String? subtitle,
  3. GestureTapCallback? onTap,
  4. bool crossPage = true,
})

显示错误通知

Implementation

static void showNotificationError({
  required String title,
  String? subtitle,
  GestureTapCallback? onTap,
  bool crossPage = true,
}) {
  _showNotification(
    title: title,
    color: AppTheme.errorColor,
    backgroundColor: AppTheme.errorColorTertiary,
    subtitle: subtitle,
    onTap: onTap,
    icon: CupertinoIcons.clear_circled,
    crossPage: crossPage,
  );
}