cMilliseconds property

Duration get cMilliseconds

Converts a numeric value to a Duration representing milliseconds.

Usage:

final millisecondsDuration = 500.cMilliseconds;

Implementation

Duration get cMilliseconds => Duration(
      microseconds: (this * 1000).round(),
    );