getFieldValue method

dynamic getFieldValue(
  1. int fieldID
)
override

Get a field's value by fieldId. Primitive types will be wrapped in the appropriate "boxed" types.

Implementation

getFieldValue(int fieldID) {
  switch (fieldID) {
    case INDEX_ID:
      return this.index_id;
    case INDEX_NAME:
      return this.index_name;
    case SCHEMA_ID:
      return this.schema_id;
    case SCHEMA_NAME:
      return this.schema_name;
    case FIELDS:
      return this.fields;
    case COMMENT:
      return this.comment;
    case INDEX_PARAMS:
      return this.index_params;
    default:
      throw new ArgumentError("Field $fieldID doesn't exist!");
  }
}