get method

LDValue get(
  1. int index
)

Retrieves an array element by index.

Returns ofNull if the value is not an array or if the index is out of range.

Implementation

LDValue get(int index) {
  if (_value is _LDValueArray) {
    return (_value as _LDValueArray)[index];
  }
  return LDValue.ofNull();
}