WeekYearConfig class
Configuration for week year calculations.
Constructors
- WeekYearConfig({int weekStart = DateTime.monday, int yearStart = 4})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- weekStart → int
-
The first day of the week (1=Monday, 7=Sunday).
final
- yearStart → int
-
The day in January that determines the first week of the year.
For ISO 8601, this is 4 (the week containing Jan 4 is week 1).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- iso → const WeekYearConfig
- ISO week year configuration (week starts Monday, Jan 4 is always in week 1).
- us → const WeekYearConfig
- US week year configuration (week starts Sunday).