cSeconds property

Duration cSeconds

Converts a numeric value to a Duration representing seconds.

Usage:

final secondsDuration = 5.cSeconds;

Implementation

Duration get cSeconds => Duration(
      milliseconds: (this * 1000).round(),
    );