BorderedSnackBar constructor

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

Creates a BorderedSnackBar widget.

The title, message, and notificationType are required. The autoCloseDuration specifies how long the SnackBar stays visible.

Implementation

const BorderedSnackBar({
  super.key,
  required this.title,
  required this.message,
  required this.notificationType,
  this.color,
  this.titleTextStyle,
  this.messageTextStyle,
  required this.snackBarType,
  this.width,
  this.height,
  this.customIcon,
  this.autoClose = true,
  this.autoCloseDuration = const Duration(seconds: 4),
});