Week enum
Week occurrences inside a month.
The first week of the month is the one that contains the first day of the month. Sometimes the last week can be the same as the fourth.
- Inheritance
- Implemented types
- Available extensions
Values
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - next → Week
-
Returns the Week next to this.
no setter
- previous → Week
-
Returns the Week previous to this.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
Week other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
of(
int year, int month, {Weekday firstDayOfWeek = Weekday.monday, bool utc = true}) → WeekPeriod -
Returns a WeekPeriod for the week of the given
yearandmonth. -
toString(
) → String -
A string representation of this object.
inherited
-
weekdayOf(
{required int year, required int month, required Weekday day, bool utc = true}) → DateTime -
Returns the DateTime for
dayof the week of the selected week for the givenyearandmonth.
Operators
-
operator +(
int weeks) → Week -
Returns the Week that corresponds to this added
weeks. Eg.: -
operator -(
int weeks) → Week -
Returns the Week that corresponds to this subtracted
weeks. Eg.: -
operator <(
Week other) → bool -
Returns true if this is before than
other. -
operator <=(
Week other) → bool -
Returns true if this is before or equal to
other. -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
Week other) → bool -
Returns true if this is after
other. -
operator >=(
Week other) → bool -
Returns true if this is after or equal to
other.