copyWith method

SegmentedInputStyle copyWith({
  1. Dim? segmentWidth,
  2. Dim? segmentHeight,
  3. Dim? gap,
  4. BorderData? border,
  5. BorderRadiusData? borderRadius,
  6. Color? hoverBorderColor,
  7. Color? focusBorderColor,
  8. Color? errorBorderColor,
  9. Color? backgroundColor,
  10. Color? filledBackgroundColor,
  11. TextStyle? textStyle,
  12. SegmentedInputShape? shape,
  13. EdgeInsets? margin,
  14. EdgeInsets? padding,
})

Creates a copy of this SegmentedInputStyle with the given fields replaced.

Implementation

SegmentedInputStyle copyWith({
  Dim? segmentWidth,
  Dim? segmentHeight,
  Dim? gap,
  BorderData? border,
  BorderRadiusData? borderRadius,
  Color? hoverBorderColor,
  Color? focusBorderColor,
  Color? errorBorderColor,
  Color? backgroundColor,
  Color? filledBackgroundColor,
  TextStyle? textStyle,
  SegmentedInputShape? shape,
  EdgeInsets? margin,
  EdgeInsets? padding,
}) {
  return SegmentedInputStyle(
    segmentWidth: segmentWidth ?? this.segmentWidth,
    segmentHeight: segmentHeight ?? this.segmentHeight,
    gap: gap ?? this.gap,
    border: border ?? this.border,
    borderRadius: borderRadius ?? this.borderRadius,
    hoverBorderColor: hoverBorderColor ?? this.hoverBorderColor,
    focusBorderColor: focusBorderColor ?? this.focusBorderColor,
    errorBorderColor: errorBorderColor ?? this.errorBorderColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    filledBackgroundColor:
        filledBackgroundColor ?? this.filledBackgroundColor,
    textStyle: textStyle ?? this.textStyle,
    shape: shape ?? this.shape,
    margin: margin ?? this.margin,
    padding: padding ?? this.padding,
  );
}