copyWith method

OpeningHours copyWith({
  1. List<List<WeekTimeInterval>>? weekOpeningHours,
  2. bool? isOpen24x7,
})

Implementation

OpeningHours copyWith({
  List<List<WeekTimeInterval>>? weekOpeningHours,
  bool? isOpen24x7
}) {
  return OpeningHours(
    weekOpeningHours: weekOpeningHours ?? this.weekOpeningHours,
    isOpen24x7: isOpen24x7 ?? this.isOpen24x7
  );
}