differenceInMinutes method

int differenceInMinutes(
  1. TimeOfDay other
)

Implementation

int differenceInMinutes(TimeOfDay other) {
  final thisTotal = hour * 60 + minute;
  final otherTotal = other.hour * 60 + other.minute;
  return (thisTotal - otherTotal).abs();
}