copyWith method
FlashBarTheme
copyWith({
- FlashPosition? position,
- FlashBehavior? behavior,
- EdgeInsets? margin,
- bool? enableVerticalDrag,
- bool? enableHorizontalDrag,
- Curve? forwardAnimationCurve,
- Curve? reverseAnimationCurve,
- Color? backgroundColor,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- EdgeInsets? padding,
- Color? iconColor,
- TextStyle? titleTextStyle,
- TextStyle? contentTextStyle,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
FlashBarTheme copyWith({
FlashPosition? position,
FlashBehavior? behavior,
EdgeInsets? margin,
bool? enableVerticalDrag,
bool? enableHorizontalDrag,
Curve? forwardAnimationCurve,
Curve? reverseAnimationCurve,
Color? backgroundColor,
double? elevation,
Color? shadowColor,
Color? surfaceTintColor,
ShapeBorder? shape,
EdgeInsets? padding,
Color? iconColor,
TextStyle? titleTextStyle,
TextStyle? contentTextStyle,
}) {
return FlashBarTheme(
margin: margin ?? this.margin,
backgroundColor: backgroundColor ?? this.backgroundColor,
elevation: elevation ?? this.elevation,
shadowColor: shadowColor ?? this.shadowColor,
surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
shape: shape ?? this.shape,
padding: padding ?? this.padding,
iconColor: iconColor ?? this.iconColor,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
contentTextStyle: contentTextStyle ?? this.contentTextStyle,
);
}