DateHelper class
Collection of methods regarding the calculation of the dates.
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 Methods
-
areDatesEqual(
{DateTime? date1, DateTime? date2}) → bool - Compares the date portions (year, month, day) of two DateTime objects.
-
getMonthDifference(
{required DateTime startDate, required DateTime endDate}) → int - Calculates the difference in months between two dates.
-
isDayOutOfRange(
{required DateTime dayDateTime, required DateTime? minSelectableDate, required DateTime? maxSelectableDate}) → bool - Checks if a given day is out of Range
-
isMaximumMonthDateReached(
{required DateTime maxSelectableDate, required DateTime currentDate}) → bool - Checks if maximum month has been reached.
-
isMinimumMonthDateReached(
{required DateTime minimumMonthDate, required DateTime currentDate}) → bool - Checks if minimum month has been reached.