rangeOf2Dates static method
Get number of date from fromDate
to toDate
.
Both fromDate
and toDate
need be a object of DateTime
or LunarDateTime
.
If passing another type the result will return null
.
Implementation
static int? rangeOf2Dates(
{required dynamic fromDate, required dynamic toDate}) {
return _rangeDate(fromDate, toDate)?.abs();
}