copyWith method
SnackBarStyle
copyWith({
- Color? backgroundColor,
- TextStyle? textStyle,
- Duration? duration,
- SnackBarBehavior? behavior,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- double? borderRadius,
- double? elevation,
- Color? actionTextColor,
- bool? enabled,
Implementation
SnackBarStyle copyWith({
Color? backgroundColor,
TextStyle? textStyle,
Duration? duration,
SnackBarBehavior? behavior,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
double? borderRadius,
double? elevation,
Color? actionTextColor,
bool? enabled,
}) {
return SnackBarStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
textStyle: textStyle ?? this.textStyle,
duration: duration ?? this.duration,
behavior: behavior ?? this.behavior,
margin: margin ?? this.margin,
padding: padding ?? this.padding,
borderRadius: borderRadius ?? this.borderRadius,
elevation: elevation ?? this.elevation,
actionTextColor: actionTextColor ?? this.actionTextColor,
enabled: enabled ?? this.enabled,
);
}