seconds property Null safety

Duration seconds

Returns a Duration representing the current value as seconds.

Example:

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

Implementation

Duration get seconds {
  return Duration(seconds: this);
}