copyWithNull method

DatePickerState copyWithNull({
  1. bool selectedDate = false,
})

Implementation

DatePickerState copyWithNull({
  bool selectedDate = false,
}) {
  return DatePickerState(
    days: days,
    selectedDate: selectedDate == true ? null : this.selectedDate,
  );
}