Index constructor

const Index({
  1. IndexType? type,
})

Creates an index for a field of an Entity class.

It is highly recommended to index properties that are used in a Query to improve query performance. To fine tune indexing of a property you can override the default index type.

Note: indexes are currently not supported for PropertyType.byteVector, PropertyType.float or double properties.

Implementation

const Index({this.type});