copyWith method
BasePickerConfig
copyWith(
{ - Color? backgroundColor,
- TextStyle? cancelTextStyle,
- TextStyle? confirmTextStyle,
- TextStyle? titleTextStyle,
- double? pickerHeight,
- double? titleHeight,
- double? itemHeight,
- TextStyle? itemTextStyle,
- TextStyle? itemTextSelectedStyle,
- Color? dividerColor,
- double? cornerRadius,
})
Implementation
BasePickerConfig copyWith({
Color? backgroundColor,
TextStyle? cancelTextStyle,
TextStyle? confirmTextStyle,
TextStyle? titleTextStyle,
double? pickerHeight,
double? titleHeight,
double? itemHeight,
TextStyle? itemTextStyle,
TextStyle? itemTextSelectedStyle,
Color? dividerColor,
double? cornerRadius,
}) {
return BasePickerConfig(
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,
);
}