copyWith method
TolyPopPickerTheme
copyWith({
- double? borderRadius,
- Color? backgroundColor,
- Color? separatorColor,
- double? separatorHeight,
- double? itemHeight,
- TextStyle? itemTextStyle,
- TextStyle? disabledItemTextStyle,
- TextStyle? cancelTextStyle,
- TextStyle? titleTextStyle,
- double? cancelHeight,
- EdgeInsets? itemPadding,
- EdgeInsets? titlePadding,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
TolyPopPickerTheme copyWith({
double? borderRadius,
Color? backgroundColor,
Color? separatorColor,
double? separatorHeight,
double? itemHeight,
TextStyle? itemTextStyle,
TextStyle? disabledItemTextStyle,
TextStyle? cancelTextStyle,
TextStyle? titleTextStyle,
double? cancelHeight,
EdgeInsets? itemPadding,
EdgeInsets? titlePadding,
}) {
return TolyPopPickerTheme(
borderRadius: borderRadius ?? this.borderRadius,
backgroundColor: backgroundColor ?? this.backgroundColor,
separatorColor: separatorColor ?? this.separatorColor,
separatorHeight: separatorHeight ?? this.separatorHeight,
itemHeight: itemHeight ?? this.itemHeight,
itemTextStyle: itemTextStyle ?? this.itemTextStyle,
disabledItemTextStyle: disabledItemTextStyle ??
this.disabledItemTextStyle,
cancelTextStyle: cancelTextStyle ?? this.cancelTextStyle,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
cancelHeight: cancelHeight ?? this.cancelHeight,
itemPadding: itemPadding ?? this.itemPadding,
titlePadding: titlePadding ?? this.titlePadding,
);
}