SnackTypeConfiguration class

Configuration for the appearance and behavior of different snackbars.

This class is used to define the properties for each snackbar type such as background color, icon, text style, margin, and more. The properties allow full customization of how a snackbar looks and behaves.

Constructors

SnackTypeConfiguration.new({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.

Properties

backgroundColor Color
The background color of the snackbar.
final
borderRadius BorderRadiusGeometry
The border radius of the snackbar.
final
elevation double
The elevation of the snackbar.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData
The icon shown in the snackbar.
final
iconColor Color
The color of the icon in the snackbar.
final
margin EdgeInsetsGeometry
The margin around the snackbar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle Text
The subtitle text displayed in the snackbar.
final
textStyle TextStyle
The style for the text displayed in the snackbar.
final
title Text
The title text displayed in the snackbar.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited