ProKitSnackBar constructor
const
ProKitSnackBar({
- Key? key,
- Color? color,
- TextStyle? titleTextStyle,
- TextStyle? messageTextStyle,
- required String title,
- required String message,
- required ProKitSnackBarType snackBarType,
- required ProKitNotificationType notificationType,
- bool inMaterialBanner = false,
- ProKitSnackBarPosition? proKitSnackBarPosition,
- bool autoClose = true,
- Duration autoCloseDuration = const Duration(milliseconds: 4000),
- double? width,
- double? height,
- 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,
});