ProKitSnackBar constructor

const ProKitSnackBar({
  1. Key? key,
  2. Color? color,
  3. TextStyle? titleTextStyle,
  4. TextStyle? messageTextStyle,
  5. required String title,
  6. required String message,
  7. required ProKitSnackBarType snackBarType,
  8. required ProKitNotificationType notificationType,
  9. bool inMaterialBanner = false,
  10. ProKitSnackBarPosition? proKitSnackBarPosition,
  11. bool autoClose = true,
  12. Duration autoCloseDuration = const Duration(milliseconds: 4000),
  13. double? width,
  14. double? height,
  15. Widget? customIcon,
})

Creates a customizable ProKitSnackBar widget.

The title, message, snackBarType, and notificationType are required parameters, while all others are optional.

Implementation

const ProKitSnackBar({
  super.key,
  this.color,
  this.titleTextStyle,
  this.messageTextStyle,
  required this.title,
  required this.message,
  required this.snackBarType,
  required this.notificationType,
  this.inMaterialBanner = false,
  this.proKitSnackBarPosition,
  this.autoClose = true,
  this.autoCloseDuration = const Duration(milliseconds: 4000),
  this.width,
  this.height,
  this.customIcon,
});