humanReadable property

String get humanReadable

Get human readable format of this duration

Example:

final duration = Duration(hours: 2, minutes: 30);
print(duration.humanReadable); // "2h 30m"

Implementation

String get humanReadable => QDateTimeUtils.formatDuration(this);