parseDuration method
Parses the string as a duration in the format HH:MM:SS.SSS.
Implementation
Duration parseDuration() {
final duration = this.tryParseDuration();
if (duration == null) {
throw ArgumentError('Invalid duration string: $this');
}
return duration;
}