copyWith method
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,
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,
);
}