copyWith method

  1. @override
TolyPopPickerTheme copyWith({
  1. double? borderRadius,
  2. Color? backgroundColor,
  3. Color? separatorColor,
  4. double? separatorHeight,
  5. double? itemHeight,
  6. TextStyle? itemTextStyle,
  7. TextStyle? disabledItemTextStyle,
  8. TextStyle? cancelTextStyle,
  9. TextStyle? titleTextStyle,
  10. double? cancelHeight,
  11. EdgeInsets? itemPadding,
  12. 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,
  );
}