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 SPACE_ID:
      return this.space_id;
    case PARTS:
      return this.parts;
    case INDICES:
      return this.indices;
    case RETURN_COLUMNS:
      return this.return_columns;
    case COMMON:
      return this.common;
    case LIMIT:
      return this.limit;
    case ORDER_BY:
      return this.order_by;
    case STAT_COLUMNS:
      return this.stat_columns;
    default:
      throw new ArgumentError("Field $fieldID doesn't exist!");
  }
}