getTimeDiffInLong static method
Implementation
static int getTimeDiffInLong(DateTime previousDate, {DateTime? currentDate, String dateFormat = FORMAT_dd_MMM_yyyy}){
DateTime targetDate = currentDate == null ? DateTime.now() : currentDate;
return targetDate.millisecondsSinceEpoch - previousDate.millisecondsSinceEpoch;
}