asSeconds property
Duration
get
asSeconds
Converts the number to a Duration in seconds.
Implementation
Duration get asSeconds => Duration(milliseconds: (this * 1000).round());
Converts the number to a Duration in seconds.
Duration get asSeconds => Duration(milliseconds: (this * 1000).round());