getAsNullableDuration method
Converts array element into a Duration or returns null if conversion is not possible.
index
an index of element to get. Returns Duration value of the element or null if conversion is not supported.
Implementation
Duration? getAsNullableDuration(int index) {
var value = _values[index];
return DurationConverter.toNullableDuration(value);
}