MonthAndYear class
Constructors
- MonthAndYear({required int month, required int year})
-
const
- MonthAndYear.fromDateTime(DateTime dateTime)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCurrentMonthAndYear → bool
-
no setter
- month → int
-
final
- monthEnd → DateTime
-
no setter
- monthRange → DateTimeRange
-
no setter
- monthStart → DateTime
-
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 → DateTimeRange
-
no setter
- year → int
-
final
Methods
-
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 -
toDateTime(
) → DateTime -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited