toDuration method

DurationShorthand toDuration()

Parse string as duration shorthand Example: ".500ms".toDuration(), ".5s".toDuration()

Implementation

DurationShorthand toDuration() => DurationShorthand.parse(this);