copyWith method

TimePickerHandlerDecoration copyWith({
  1. BoxShape? shape,
  2. Icon? icon,
  3. Color? color,
  4. BoxShadow? shadow,
  5. double? radius,
  6. Border? border,
  7. double? handlerOutterRadius,
  8. bool? showRoundedCapInSelection,
})

Creates a copy of the TimePickerHandlerDecoration.

Implementation

TimePickerHandlerDecoration copyWith({
  BoxShape? shape,
  Icon? icon,
  Color? color,
  BoxShadow? shadow,
  double? radius,
  Border? border,
  double? handlerOutterRadius,
  bool? showRoundedCapInSelection,
}) {
  return TimePickerHandlerDecoration(
    shape: shape ?? this.shape,
    icon: icon ?? this.icon,
    color: color ?? this.color,
    shadow: shadow ?? this.shadow,
    radius: radius ?? this.radius,
    border: border ?? this.border,
    handlerOutterRadius: handlerOutterRadius ?? this.handlerOutterRadius,
    useRoundedPickerCap:
        showRoundedCapInSelection ?? this.useRoundedPickerCap,
  );
}