BorderedSnackBar constructor
const
BorderedSnackBar({
- Key? key,
- required String title,
- required String message,
- required ProKitNotificationType notificationType,
- Color? color,
- TextStyle? titleTextStyle,
- TextStyle? messageTextStyle,
- required ProKitSnackBarType snackBarType,
- double? width,
- double? height,
- Widget? customIcon,
- bool autoClose = true,
- 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),
});