inheritedIndexes property
List<SerializableModelIndexDefinition>
get
inheritedIndexes
Returns a list of all indexes declared in the parent class. If there is no parent class, an empty list is returned. Inherited indexes act as index generators for child classes. They are created with the table name as prefix to the original name.
Implementation
List<SerializableModelIndexDefinition> get inheritedIndexes {
var inherited = parentClass?.indexesIncludingInherited ?? [];
if (tableName == null) return inherited;
return [
for (var index in inherited) index.copyWithPrefix(tableName!),
];
}