SnackTypeConfiguration constructor
SnackTypeConfiguration({
- required Color backgroundColor,
- required IconData icon,
- required Color iconColor,
- required Text title,
- required Text subtitle,
- required TextStyle textStyle,
- required double elevation,
- required EdgeInsetsGeometry margin,
- required BorderRadiusGeometry borderRadius,
Creates a SnackTypeConfiguration with the specified properties.
backgroundColor
defines the background color of the snackbar.
icon
specifies the icon to be shown on the snackbar.
iconColor
defines the color of the icon.
title
is the main title displayed in the snackbar.
subtitle
is the secondary text shown below the title.
textStyle
specifies the style for the text.
elevation
adds shadow depth to the snackbar.
margin
defines the space around the snackbar.
borderRadius
is the rounding of the snackbar's corners.
Implementation
SnackTypeConfiguration({
required this.backgroundColor,
required this.icon,
required this.iconColor,
required this.title,
required this.subtitle,
required this.textStyle,
required this.elevation,
required this.margin,
required this.borderRadius,
});