seconds property Null safety

Duration seconds

Returns current int in Duration of seconds

It will be convert to ms first

1.5s --> 1500ms

Implementation

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