copyWith method
OpeningHours
copyWith({
- bool? openNow,
- List<
OpeningHoursPeriod> ? periods, - List<
String> ? weekdayText,
Implementation
OpeningHours copyWith({
bool? openNow,
List<OpeningHoursPeriod>? periods,
List<String>? weekdayText,
}) {
return OpeningHours(
openNow: openNow ?? this.openNow,
periods: periods ?? this.periods,
weekdayText: weekdayText ?? this.weekdayText,
);
}