inMinutes property
The number of whole minutes spanned by this Duration.
The returned value can be greater than 59. For example, a duration of three hours and 12 minutes has 192 minutes.
const duration = Duration(hours: 3, minutes: 12);
print(duration.inMinutes); // 192 = 3 * 60 + 12
A negative duration has a negative number of whole minutes,
so that (-duration).inMinutes = -(duration.inMinutes).
Implementation
int get inMinutes => inMicroseconds ~/ Duration.microsecondsPerMinute;