operator [] method

dynamic operator [](
  1. int index
)

Implementation

dynamic operator [](int index) {
  if (fields == null) {
    return null;
  }

  if (fields!.length <= index) {
    return null;
  }

  return fields![index];
}