SmoothBanner constructor

const SmoothBanner({
  1. required Widget icon,
  2. required String content,
  3. String? title,
  4. Color? titleColor,
  5. TextStyle? titleStyle,
  6. Color? contentColor,
  7. TextStyle? contentStyle,
  8. AlignmentGeometry? iconAlignment,
  9. Color? iconColor,
  10. Color? iconBackgroundColor,
  11. Color? titleBackgroundColor,
  12. Color? contentBackgroundColor,
  13. ValueChanged<SmoothBannerDismissEvent>? onDismissClicked,
  14. BorderRadiusGeometry? borderRadius,
  15. bool addSafeArea = false,
  16. bool topShadow = false,
  17. Key? key,
})

Implementation

const SmoothBanner({
  required this.icon,
  required this.content,
  this.title,
  this.titleColor,
  this.titleStyle,
  this.contentColor,
  this.contentStyle,
  this.iconAlignment,
  this.iconColor,
  this.iconBackgroundColor,
  this.titleBackgroundColor,
  this.contentBackgroundColor,
  this.onDismissClicked,
  this.borderRadius,
  this.addSafeArea = false,
  this.topShadow = false,
  super.key,
});