fromSecondsToDuration method

Duration fromSecondsToDuration()

Converts num (expected in seconds) to the duration.

Implementation

Duration fromSecondsToDuration() => Duration(
      milliseconds: ((isNaN || isInfinite ? 0 : this) * 1000).round(),
    );