errorBanner static method

ComBannerController errorBanner({
  1. String? message,
  2. String? titleText,
  3. Widget? title,
  4. Widget? subtitle,
  5. Widget? trailing,
  6. VoidCallback? onTap,
  7. bool showCloseButton = false,
  8. ComToastConfig? config,
  9. ComBannerOptions options = const ComBannerOptions(),
  10. bool skipDuplicateFilter = false,
})

Implementation

static ComBannerController errorBanner({
  String? message,
  String? titleText,
  Widget? title,
  Widget? subtitle,
  Widget? trailing,
  VoidCallback? onTap,
  bool showCloseButton = false,
  ComToastConfig? config,
  ComBannerOptions options = const ComBannerOptions(),
  bool skipDuplicateFilter = false,
}) {
  return _showBanner(
    message,
    ComToastType.error,
    titleText: titleText,
    title: title,
    subtitle: subtitle,
    trailing: trailing,
    onTap: onTap,
    showCloseButton: showCloseButton,
    config: config,
    options: options,
    skipDuplicateFilter: skipDuplicateFilter,
  );
}