copyWith method
VButtonStyle
copyWith({
- Color? backgroundColorDisabled,
- Color? backgroundColorActive,
- Color? foregroundColorDisabled,
- Color? foregroundColorActive,
- Color? overlayColorPressed,
- Color? overlayColorFocused,
- Color? shadowColor,
- double? elevation,
- double? borderRadiusActive,
- double? borderRadiusDisabled,
- Size? minimumSize,
- TextStyle? buttonTextStyle,
- BorderSide? borderSideActive,
- BorderSide? borderSideDisabled,
- EdgeInsetsGeometry? padding,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
VButtonStyle copyWith({
Color? backgroundColorDisabled,
Color? backgroundColorActive,
Color? foregroundColorDisabled,
Color? foregroundColorActive,
Color? overlayColorPressed,
Color? overlayColorFocused,
Color? shadowColor,
double? elevation,
double? borderRadiusActive,
double? borderRadiusDisabled,
Size? minimumSize,
TextStyle? buttonTextStyle,
BorderSide? borderSideActive,
BorderSide? borderSideDisabled,
EdgeInsetsGeometry? padding,
}) =>
VButtonStyle(
backgroundColorDisabled:
backgroundColorDisabled ?? this.backgroundColorDisabled,
backgroundColorActive:
backgroundColorActive ?? this.backgroundColorActive,
foregroundColorDisabled:
foregroundColorDisabled ?? this.foregroundColorDisabled,
foregroundColorActive:
foregroundColorActive ?? this.foregroundColorActive,
overlayColorPressed: overlayColorPressed ?? this.overlayColorPressed,
overlayColorFocused: overlayColorFocused ?? this.overlayColorFocused,
shadowColor: shadowColor ?? this.shadowColor,
elevation: elevation ?? this.elevation,
minimumSize: minimumSize ?? this.minimumSize,
borderRadiusActive: borderRadiusActive ?? this.borderRadiusActive,
borderRadiusDisabled: borderRadiusDisabled ?? this.borderRadiusDisabled,
borderSideActive: borderSideActive ?? this.borderSideActive,
borderSideDisabled: borderSideDisabled ?? this.borderSideDisabled,
padding: padding ?? this.padding,
);