diffInMinutes method

int diffInMinutes(
  1. DateTime? other, {
  2. bool abs = false,
})

Difference in minutes.

Implementation

int diffInMinutes(DateTime? other, {bool abs = false}) {
  final d = abs
      ? differenceAbs(withThis: other)
      : difference(withThis: other);
  return d.inMinutes;
}