OpeningHours class
Represents information on when a Place will be open during the week.
- Annotations
-
- @freezed
Constructors
-
OpeningHours({required List<
Period> periods, required List<String> weekdayText}) -
constructs an OpeningHours object.
constfactory
-
OpeningHours.fromJson(Map<
String, Object?> json) -
Parse an OpeningHours from json.
factory
Properties
-
copyWith
→ $OpeningHoursCopyWith<
OpeningHours> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
periods
→ List<
Period> -
A list of Period objects that provide more detailed information that is equivalent to the data provided by getWeekdayText().
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
weekdayText
→ List<
String> -
Returns a list of strings that represent opening and closing hours in human readable form.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited