inMinutes property

int get inMinutes

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

Implementation

int get inMinutes => _duration ~/ Duration.microsecondsPerMinute;