TimeSpan constructor

TimeSpan({
  1. bool negated = false,
  2. int years = 0,
  3. int months = 0,
  4. int weeks = 0,
  5. int days = 0,
  6. int hours = 0,
  7. int minutes = 0,
  8. int seconds = 0,
  9. int millis = 0,
  10. int micros = 0,
})

Implementation

TimeSpan(
    {bool negated = false,
    int years = 0,
    int months = 0,
    int weeks = 0,
    int days = 0,
    int hours = 0,
    int minutes = 0,
    int seconds = 0,
    int millis = 0,
    int micros = 0})
    : this.ofParts(<double>[
        years.toDouble(),
        months.toDouble(),
        weeks.toDouble(),
        days.toDouble(),
        hours.toDouble(),
        minutes.toDouble(),
        _secondsDecimal(seconds: seconds, millis: millis, micros: micros)
            .toDouble(),
      ], negated: negated);