MonthAndYear class
Constructors
- MonthAndYear({required int month, required int year})
-
const
- MonthAndYear.fromDate(Date dateTime)
-
factory
- MonthAndYear.fromDateTime(DateTime dateTime)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCurrentMonthAndYear → bool
-
no setter
- month → int
-
final
- monthEnd → Date
-
no setter
- monthRange → DateRange
-
no setter
- monthStart → Date
-
no setter
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - visibleCalendarRange → DateRange
-
no setter
- year → int
-
final
Methods
-
addMonths(
int months) → MonthAndYear -
copyWith(
{int? month, int? year}) → MonthAndYear -
isAfter(
MonthAndYear other) → bool -
isBefore(
MonthAndYear other) → bool -
nextMonth(
) → MonthAndYear -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previousMonth(
) → MonthAndYear -
subtractMonths(
int months) → MonthAndYear -
toDate(
) → Date -
toDateTime(
) → DateTime -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited