TimeSpan.ofParts constructor

TimeSpan.ofParts(
  1. List<num?> parts, {
  2. bool negated = false,
})

Implementation

TimeSpan.ofParts(List<num?> parts, {this.negated = false})
    : assert(parts.length == 7),
      _values = List.unmodifiable([
        for (var value in parts) value?.toDouble() ?? 0.0,
      ]);