Holiday class
A class that represents a holiday
Constructors
-
Holiday({required String name, required HolidayType holidayType, required String date, required String duration, required String origin, required String celebratedBy, required List<
String> traditions}) - Holiday.fromJson(String source)
-
factory
-
Holiday.fromMap(Map<
String, dynamic> map) -
factory
-
Holiday.fromShallowMap(Map<
String, dynamic> map) -
factory
Properties
- celebratedBy → String
-
Who celebrates the holiday
final
- date → String
-
The abstract date of the holiday (in the summer, first rain, full moon, etc.)
final
- duration → String
-
The duration the holiday is celebrated
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- holidayType → HolidayType
-
final
- name → String
-
The name of the holiday
final
- origin → String
-
The origin of the holiday
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
traditions
→ List<
String> -
What are the traditions of this holiday
final
Methods
-
copyWith(
{String? name, HolidayType? holidayType, String? date, String? duration, String? origin, String? celebratedBy, List< String> ? traditions}) → Holiday -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant Holiday other) → bool -
The equality operator.
override