copyWith method
Implementation
@override
SegmentStyle copyWith({
Size? segmentBaseSize,
Color? enabledColor,
Color? disabledColor,
double? segmentSpacing,
}) {
return DefaultSegmentStyle(
enabledColor: enabledColor ?? this.enabledColor,
disabledColor: disabledColor ?? this.disabledColor,
segmentBaseSize: segmentBaseSize ?? this.segmentBaseSize,
segmentSpacing: segmentSpacing ?? this.segmentSpacing,
);
}