diffInHours method

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

Difference in hours.

Implementation

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