getAsDuration method
Converts array element into a Duration or returns the current date if conversion is not possible.
index
an index of element to get. Returns Duration value ot the element or the current date if conversion is not supported.
Implementation
Duration getAsDuration(int index) {
return getAsDurationWithDefault(index, Duration());
}