GetSnackBar constructor

const GetSnackBar({
  1. Key? key,
  2. String? title,
  3. String? message,
  4. Widget? titleText,
  5. Widget? messageText,
  6. Widget? icon,
  7. bool shouldIconPulse = true,
  8. double? maxWidth,
  9. EdgeInsets margin = const EdgeInsets.all(0.0),
  10. EdgeInsets padding = const EdgeInsets.all(16),
  11. double borderRadius = 0.0,
  12. Color? borderColor,
  13. double? borderWidth = 1.0,
  14. Color backgroundColor = const Color(0xFF303030),
  15. Color? leftBarIndicatorColor,
  16. List<BoxShadow>? boxShadows,
  17. Gradient? backgroundGradient,
  18. Widget? mainButton,
  19. OnTap? onTap,
  20. OnHover? onHover,
  21. Duration? duration,
  22. bool isDismissible = true,
  23. DismissDirection? dismissDirection,
  24. bool showProgressIndicator = false,
  25. AnimationController? progressIndicatorController,
  26. Color? progressIndicatorBackgroundColor,
  27. Animation<Color>? progressIndicatorValueColor,
  28. SnackPosition snackPosition = SnackPosition.bottom,
  29. SnackStyle snackStyle = SnackStyle.floating,
  30. Curve forwardAnimationCurve = Curves.easeOutCirc,
  31. Curve reverseAnimationCurve = Curves.easeOutCirc,
  32. Duration animationDuration = const Duration(seconds: 1),
  33. double barBlur = 0.0,
  34. double overlayBlur = 0.0,
  35. Color? overlayColor = Colors.transparent,
  36. Form? userInputForm,
  37. SnackbarStatusCallback? snackbarStatus,
  38. HitTestBehavior? hitTestBehavior,
})

Implementation

const GetSnackBar({
  super.key,
  this.title,
  this.message,
  this.titleText,
  this.messageText,
  this.icon,
  this.shouldIconPulse = true,
  this.maxWidth,
  this.margin = const EdgeInsets.all(0.0),
  this.padding = const EdgeInsets.all(16),
  this.borderRadius = 0.0,
  this.borderColor,
  this.borderWidth = 1.0,
  this.backgroundColor = const Color(0xFF303030),
  this.leftBarIndicatorColor,
  this.boxShadows,
  this.backgroundGradient,
  this.mainButton,
  this.onTap,
  this.onHover,
  this.duration,
  this.isDismissible = true,
  this.dismissDirection,
  this.showProgressIndicator = false,
  this.progressIndicatorController,
  this.progressIndicatorBackgroundColor,
  this.progressIndicatorValueColor,
  this.snackPosition = SnackPosition.bottom,
  this.snackStyle = SnackStyle.floating,
  this.forwardAnimationCurve = Curves.easeOutCirc,
  this.reverseAnimationCurve = Curves.easeOutCirc,
  this.animationDuration = const Duration(seconds: 1),
  this.barBlur = 0.0,
  this.overlayBlur = 0.0,
  this.overlayColor = Colors.transparent,
  this.userInputForm,
  this.snackbarStatus,
  this.hitTestBehavior,
});