copyWith method
PickerConfig
copyWith(
{ - Color? backgroundColor,
- BaseTextStyle? cancelTextStyle,
- BaseTextStyle? confirmTextStyle,
- BaseTextStyle? titleTextStyle,
- double? pickerHeight,
- double? titleHeight,
- double? itemHeight,
- BaseTextStyle? itemTextStyle,
- BaseTextStyle? itemTextSelectedStyle,
- Color? dividerColor,
- double? cornerRadius,
})
Implementation
PickerConfig copyWith({
Color? backgroundColor,
BaseTextStyle? cancelTextStyle,
BaseTextStyle? confirmTextStyle,
BaseTextStyle? titleTextStyle,
double? pickerHeight,
double? titleHeight,
double? itemHeight,
BaseTextStyle? itemTextStyle,
BaseTextStyle? itemTextSelectedStyle,
Color? dividerColor,
double? cornerRadius,
}) {
return PickerConfig(
backgroundColor: backgroundColor ?? _backgroundColor,
cancelTextStyle: cancelTextStyle ?? _cancelTextStyle,
confirmTextStyle: confirmTextStyle ?? _confirmTextStyle,
titleTextStyle: titleTextStyle ?? _titleTextStyle,
pickerHeight: pickerHeight ?? _pickerHeight,
titleHeight: titleHeight ?? _titleHeight,
itemHeight: itemHeight ?? _itemHeight,
itemTextStyle: itemTextStyle ?? _itemTextStyle,
itemTextSelectedStyle: itemTextSelectedStyle ?? _itemTextSelectedStyle,
dividerColor: dividerColor ?? _dividerColor,
cornerRadius: cornerRadius ?? _cornerRadius,
);
}