seconds property

Duration seconds

Returns a Duration object representing the number of seconds represented by this number.

Example usage:

  var fiveSeconds = 5.seconds;
  print(fiveSeconds); // prints "Duration: 00:00:05.000000"

Implementation

Duration get seconds => Duration(seconds: this as int);