copyWith method

BasePickerTitleConfig copyWith({
  1. Widget? cancel,
  2. String? cancelTitle,
  3. Widget? confirm,
  4. String? confirmTitle,
  5. Widget? title,
  6. bool? showTitle,
  7. String? titleContent,
  8. Color? titleBackgroundColor,
  9. Color? backgroundColor,
})

Implementation

BasePickerTitleConfig copyWith({
  Widget? cancel,
  String? cancelTitle,
  Widget? confirm,
  String? confirmTitle,
  Widget? title,
  bool? showTitle,
  String? titleContent,
  Color? titleBackgroundColor,
  Color? backgroundColor,
}) {
  return BasePickerTitleConfig(
    cancel: cancel ?? this.cancel,
    cancelTitle: cancelTitle ?? this.cancelTitle,
    confirm: confirm ?? this.confirm,
    confirmTitle: confirmTitle ?? this.confirmTitle,
    title: title ?? this.title,
    showTitle: showTitle ?? this.showTitle,
    titleContent: titleContent ?? this.titleContent,
    titleBackgroundColor: titleBackgroundColor ?? this.titleBackgroundColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
  );
}