copyWith method

TimePickerDecoration copyWith({
  1. TimePickerSweepDecoration? sweepDecoration,
  2. TimePickerHandlerDecoration? initHandlerDecoration,
  3. TimePickerHandlerDecoration? endHandlerDecoration,
  4. Color? baseColor,
  5. double? radiusPadding,
  6. TimePickerSectorDecoration? primaryClockSectorDecoration,
  7. TimePickerSectorDecoration? secondaryClockSectorDecoration,
  8. TimePickerClockNumberDecoration? clockIndicatorDecoration,
})

Creates a copy of the TimePickerDecoration.

Implementation

TimePickerDecoration copyWith({
  TimePickerSweepDecoration? sweepDecoration,
  TimePickerHandlerDecoration? initHandlerDecoration,
  TimePickerHandlerDecoration? endHandlerDecoration,
  Color? baseColor,
  double? radiusPadding,
  TimePickerSectorDecoration? primaryClockSectorDecoration,
  TimePickerSectorDecoration? secondaryClockSectorDecoration,
  TimePickerClockNumberDecoration? clockIndicatorDecoration,
}) {
  return TimePickerDecoration(
    sweepDecoration: sweepDecoration ?? this.sweepDecoration,
    initHandlerDecoration:
        initHandlerDecoration ?? this.initHandlerDecoration,
    endHandlerDecoration: endHandlerDecoration ?? this.endHandlerDecoration,
    baseColor: baseColor ?? this.baseColor,
    pickerBaseCirclePadding: radiusPadding ?? this.pickerBaseCirclePadding,
    primarySectorsDecoration:
        primaryClockSectorDecoration ?? this.primarySectorsDecoration,
    secondarySectorsDecoration:
        secondaryClockSectorDecoration ?? this.secondarySectorsDecoration,
    clockNumberDecoration:
        clockIndicatorDecoration ?? this.clockNumberDecoration,
  );
}