WeekConfig class
Configuration for week calculations.
- Annotations
-
- @immutable
Constructors
- WeekConfig({int firstDayOfWeek = DateTime.monday, int minDaysInFirstWeek = 4})
-
const
Properties
- firstDayOfWeek → int
-
The first day of the week (1 = Monday, 7 = Sunday).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- minDaysInFirstWeek → int
-
Minimum days in the first week of the year.
ISO 8601 uses 4 (the week containing January 4th is week 1).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.
override
Constants
- iso → const WeekConfig
- ISO 8601 configuration.
- us → const WeekConfig
- US configuration (Sunday start, first week contains January 1).