getField method

String getField(
  1. int i
)

Returns the field at index i if it exists, otherwise returns an empty string.

Implementation

String getField(int i) {
  if (i < 0 || i >= fields.length) return '';
  return fields[i];
}