copyWith method

  1. @override
VButtonStyle copyWith({
  1. Color? backgroundColorDisabled,
  2. Color? backgroundColorActive,
  3. Color? foregroundColorDisabled,
  4. Color? foregroundColorActive,
  5. Color? overlayColorPressed,
  6. Color? overlayColorFocused,
  7. Color? shadowColor,
  8. double? elevation,
  9. double? borderRadiusActive,
  10. double? borderRadiusDisabled,
  11. Size? minimumSize,
  12. TextStyle? buttonTextStyle,
  13. BorderSide? borderSideActive,
  14. BorderSide? borderSideDisabled,
  15. 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,
    );