getAsValue method

AnyValue getAsValue(
  1. int index
)

Converts array element into an AnyValue or returns an empty AnyValue if conversion is not possible.

  • index an index of element to get. Returns AnyValue value of the element or empty AnyValue if conversion is not supported.

See AnyValue See AnyValue.constructor

Implementation

AnyValue getAsValue(int index) {
  var value = _values[index];
  return AnyValue(value);
}