s property Null safety

Duration s

Short-hand for seconds

Implementation

Duration get s {
  final ms = (this * 1000).floor();
  return Duration(milliseconds: ms);
}