WeekYearRules class abstract
Factory methods to construct week-year rules supported by Time Machine.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
inherited
Static Properties
- iso → WeekYearRule
-
Returns an WeekYearRule consistent with ISO-8601.
final
Static Methods
-
forMinDaysInFirstWeek(
int minDaysInFirstWeek, [DayOfWeek firstDayOfWeek = DayOfWeek.monday]) → WeekYearRule - Creates a week year rule where the boundary between one week-year and the next is parameterized in terms of how many days of the first week of the week year have to be in the new calendar year, and also by which day is deemed to be the first day of the week. This is Monday by default.
-
fromCalendarWeekRule(
CalendarWeekRule calendarWeekRule, DayOfWeek firstDayOfWeek) → WeekYearRule -
Creates a rule which behaves the same way as the BCL
Calendar.getWeekOfYear(DateTime, CalendarWeekRule, DayOfWeek)
method.