VoToastTheme constructor

const VoToastTheme({
  1. double? verticalSpacing,
  2. double? horizontalSpacing,
  3. double? leadingSize,
  4. VoToastStyle defaultStyle = VoToastStyle.snackBar,
  5. VoToastPosition defaultPosition = VoToastPosition.bottom,
  6. Duration duration = const Duration(seconds: 20),
  7. Duration? animationDuration = const Duration(milliseconds: 300),
  8. Curve appearCurve = Curves.easeOutBack,
  9. Curve dismissCurve = Curves.easeInBack,
  10. double? snackBarRadius,
  11. VoToastAlignment horizontalAlignment = VoToastAlignment.center,
  12. double? bannerRadius,
  13. EdgeInsetsGeometry? contentPadding,
  14. int maxLines = 4,
  15. Color? backgroundColor,
  16. Color? borderColor,
  17. List<BoxShadow>? boxShadow,
  18. double? widthFactor,
  19. double? maxWidth,
  20. bool genericStyle = true,
  21. TextStyle? titleStyle,
  22. TextStyle? messageStyle,
  23. double snackBarStackOffset = 16,
  24. double bannerStackOffset = 20,
  25. double secondStackScale = 0.95,
  26. double thirdStackScale = 0.90,
  27. int maxVisible = 3,
  28. Widget? errorIcon,
  29. Widget? warningIcon,
  30. Widget? successIcon,
  31. Widget? infoIcon,
})

Implementation

const VoToastTheme({
  this.verticalSpacing,
  this.horizontalSpacing,
  this.leadingSize,
  this.defaultStyle = VoToastStyle.snackBar,
  this.defaultPosition = VoToastPosition.bottom,
  this.duration = const Duration(seconds: 20),
  this.animationDuration = const Duration(milliseconds: 300),
  this.appearCurve = Curves.easeOutBack,
  this.dismissCurve = Curves.easeInBack,
  this.snackBarRadius,
  this.horizontalAlignment = VoToastAlignment.center,
  this.bannerRadius,
  this.contentPadding,
  this.maxLines = 4,
  this.backgroundColor,
  this.borderColor,
  this.boxShadow,
  this.widthFactor,
  this.maxWidth,
  this.genericStyle = true,
  this.titleStyle,
  this.messageStyle,
  this.snackBarStackOffset = 16,
  this.bannerStackOffset = 20,
  this.secondStackScale = 0.95,
  this.thirdStackScale = 0.90,
  this.maxVisible = 3,
  this.errorIcon,
  this.warningIcon,
  this.successIcon,
  this.infoIcon,
});