toDuration method
Parse string as duration shorthand Example: ".500ms".toDuration(), ".5s".toDuration()
Implementation
DurationShorthand toDuration() => DurationShorthand.parse(this);
Parse string as duration shorthand Example: ".500ms".toDuration(), ".5s".toDuration()
DurationShorthand toDuration() => DurationShorthand.parse(this);