differenceInMinutes method
Returns difference between two dates in minutes
Implementation
int differenceInMinutes(DateTime other) {
return DateTime(year, month, day)
.difference(DateTime(other.year, other.month, other.day))
.inMinutes;
}