Index class

Annotate properties to build an index for the annotated property.

Constructors

Index({String? name, List<CompositeIndex> composite = const [], bool unique = false, IndexType? type, bool? caseSensitive})
const

Properties

caseSensitive bool?
final
composite List<CompositeIndex>
final
hashCode int
The hash code for this object.
no setterinherited
name String?
Name of the index. By default, the names of the properties are concatenated using "_"
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type IndexType?
final
unique bool
A unique index ensures the index does not contain any duplicate values. Any attempt to insert or update data into the unique index that causes a duplicate will result in an error.
final

Methods

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

Operators

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