getDefaultBannerConfig static method

ComToastConfig getDefaultBannerConfig(
  1. ComToastType type
)

Implementation

static ComToastConfig getDefaultBannerConfig(ComToastType type) {
  final base = getDefaultConfig(type);
  return const ComToastConfig(
    presentation: ComToastPresentation.banner,
    position: ComToastPosition.top,
    duration: Duration(milliseconds: 2200),
    maxWidth: 0.96,
    borderRadius: 18,
    topMargin: 12,
    padding: EdgeInsets.symmetric(horizontal: 18, vertical: 14),
    animationDuration: 420,
  ).applyTo(base, preserveBaseType: true);
}