DurationShorthand.s constructor
DurationShorthand.s(
- double seconds
Create from seconds
Implementation
factory DurationShorthand.s(double seconds) {
return DurationShorthand(Duration(milliseconds: (seconds * 1000).round()));
}