getAsObject method
Gets the value stored in array element without any conversions. When element index is not defined it returns the entire array value.
- index (optional) an index of the element to get Returns the element value or value of the array when index is not defined.
Implementation
dynamic getAsObject([int? index]) {
if (index == null) {
var result = [];
for (var item in _values) {
result.add(item);
}
return result;
} else {
return _values[index];
}
}