rangeOf2Dates static method

int? rangeOf2Dates({
  1. required dynamic fromDate,
  2. required dynamic toDate,
})

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();
}