copyWith method

PickerConfig copyWith({
  1. Color? backgroundColor,
  2. BaseTextStyle? cancelTextStyle,
  3. BaseTextStyle? confirmTextStyle,
  4. BaseTextStyle? titleTextStyle,
  5. double? pickerHeight,
  6. double? titleHeight,
  7. double? itemHeight,
  8. BaseTextStyle? itemTextStyle,
  9. BaseTextStyle? itemTextSelectedStyle,
  10. Color? dividerColor,
  11. 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,
  );
}