copyWith method

TimePickerSweepDecoration copyWith({
  1. double? pickerStrokeWidth,
  2. Color? pickerColor,
  3. SweepGradient? pickerGradient,
  4. bool? showConnector,
  5. double? connectorStrokeWidth,
  6. Color? connectorColor,
})

Creates a copy of the TimePickerSweepDecoration.

Implementation

TimePickerSweepDecoration copyWith({
  double? pickerStrokeWidth,
  Color? pickerColor,
  SweepGradient? pickerGradient,
  bool? showConnector,
  double? connectorStrokeWidth,
  Color? connectorColor,
}) {
  return TimePickerSweepDecoration(
    pickerStrokeWidth: pickerStrokeWidth ?? this.pickerStrokeWidth,
    pickerColor: pickerColor ?? this.pickerColor,
    pickerGradient: pickerGradient ?? this.pickerGradient,
    showConnector: showConnector ?? this.showConnector,
    connectorStrokeWidth: connectorStrokeWidth ?? this.connectorStrokeWidth,
    connectorColor: connectorColor ?? this.connectorColor,
  );
}