getPropertyByIndex method

IsarPropertySchema getPropertyByIndex(
  1. int index
)

Get the property schema by its index.

Implementation

IsarPropertySchema getPropertyByIndex(int index) {
  if (index == 0) {
    return IsarPropertySchema(
      name: idName!,
      type: IsarType.long,
    );
  } else {
    return properties[index - 1];
  }
}