copyWith method
TimePickerDecoration
copyWith({
- TimePickerSweepDecoration? sweepDecoration,
- TimePickerHandlerDecoration? initHandlerDecoration,
- TimePickerHandlerDecoration? endHandlerDecoration,
- Color? baseColor,
- double? radiusPadding,
- TimePickerSectorDecoration? primaryClockSectorDecoration,
- TimePickerSectorDecoration? secondaryClockSectorDecoration,
- 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,
);
}