SnackBarThemeData constructor Null safety
- {Color? backgroundColor,
- Color? actionTextColor,
- Color? disabledActionTextColor,
- TextStyle? contentTextStyle,
- double? elevation,
- ShapeBorder? shape,
- SnackBarBehavior? behavior}
Creates a theme that can be used for ThemeData.snackBarTheme.
The elevation must be null or non-negative.
Implementation
const SnackBarThemeData({
this.backgroundColor,
this.actionTextColor,
this.disabledActionTextColor,
this.contentTextStyle,
this.elevation,
this.shape,
this.behavior,
}) : assert(elevation == null || elevation >= 0.0);