OpeningHours constructor

OpeningHours(
  1. List<String> text,
  2. bool isOpen,
  3. List<ScheduleDetails> scheduleDetailsList,
  4. List<PlaceCategory> categories,
)

Creates a new instance.

  • text The list of opening hours presented as localized text.
  • isOpen Boolean flag informing if the place is open or closed at the time when the search request was initiated. For offline search, this is calculated using device's time, so it may give incorrect value if device and place are located in different time zones.
  • scheduleDetailsList The list of schedule details.
  • categories The list of categories related to opening hours information. This data is not available in offline search.

Implementation

OpeningHours(this.text, this.isOpen, this.scheduleDetailsList, this.categories);