copyWith method
PickerOptions<T>
copyWith({
- Color? backgroundColor,
- Decoration? decoration,
- Widget? bottom,
- Widget? top,
- EdgeInsetsGeometry? padding,
- Widget? confirm,
- Widget? cancel,
- Widget? title,
- Widget? background,
- PickerTapCallback<
T> ? verifyConfirm, - PickerTapCallback<
T> ? verifyCancel,
Implementation
PickerOptions<T> copyWith({
Color? backgroundColor,
Decoration? decoration,
Widget? bottom,
Widget? top,
EdgeInsetsGeometry? padding,
Widget? confirm,
Widget? cancel,
Widget? title,
Widget? background,
PickerTapCallback<T>? verifyConfirm,
PickerTapCallback<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,
background: background ?? this.background,
verifyConfirm: verifyConfirm ?? this.verifyConfirm,
verifyCancel: verifyCancel ?? this.verifyCancel);