minutes property Null safety

Duration minutes

Return current int in Duration of minutes

It will be convert to second the truncate()

1.5m -> 90s = 90s

1.2m -> 72s = 72s

1.02m -> 61.2s = 61s

Implementation

Duration get minutes {
  final secs = (this * 60).toInt();
  return Duration(seconds: secs);
}