getAge method

int getAge(
  1. int index
)
Get the age of a given property index. Zero-based property index.

Implementation

int getAge(int index) {
  if (index < _ages.length)
    return _ages[index];
  else
    return 0;
}