seconds property

Duration seconds

Returns a Duration representing the current value as seconds.

Example:

30.seconds; // Duration(seconds: 30);

Implementation

Duration get seconds {
  return Duration(microseconds: (1000000 * this).round());
}