SnackTypeConfiguration constructor

SnackTypeConfiguration({
  1. required Color backgroundColor,
  2. required IconData icon,
  3. required Color iconColor,
  4. required Text title,
  5. required Text subtitle,
  6. required TextStyle textStyle,
  7. required double elevation,
  8. required EdgeInsetsGeometry margin,
  9. 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,
});