copyWith method

PickerOptions copyWith({
  1. Color? backgroundColor,
  2. Decoration? decoration,
  3. Widget? bottom,
  4. Widget? top,
  5. EdgeInsetsGeometry? padding,
  6. Widget? confirm,
  7. Widget? cancel,
  8. Widget? title,
  9. PickerTapConfirmCallback<T>? verifyConfirm,
  10. PickerTapCancelCallback<T>? verifyCancel,
})

Implementation

PickerOptions copyWith({
  Color? backgroundColor,
  Decoration? decoration,
  Widget? bottom,
  Widget? top,
  EdgeInsetsGeometry? padding,
  Widget? confirm,
  Widget? cancel,
  Widget? title,
  PickerTapConfirmCallback<T>? verifyConfirm,
  PickerTapCancelCallback<T>? verifyCancel,
}) =>
    PickerOptions<T>(
        decoration: decoration ?? this.decoration,
        backgroundColor: backgroundColor ?? this.backgroundColor,
        bottom: bottom ?? this.bottom,
        top: top ?? this.top,
        padding: padding ?? this.padding,
        title: title ?? this.title,
        confirm: confirm ?? this.confirm,
        cancel: cancel ?? this.cancel,
        verifyConfirm: verifyConfirm ?? this.verifyConfirm,
        verifyCancel: verifyCancel ?? this.verifyCancel);