Index class Null safety

Specifies that the property should be indexed.

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 ByteVector, Float or Double properties.

Constructors

Index({IndexType? type})
Create an Index annotation.
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type IndexType?
Index type.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited