Index class Null safety

Annotate properties to build an index.

Annotations
  • @Target({TargetKind.field, TargetKind.getter, TargetKind.setter})

Constructors

Index({String? name, List<CompositeIndex> composite = const [], bool unique = false, IndexType? type, bool? caseSensitive})
Annotate properties to build an index.
const

Properties

caseSensitive bool?
String or List<String> indexes can be case sensitive (default) or case insensitive.
final
composite List<CompositeIndex>
Specify up to two other properties to build a composite index.
final
hashCode int
The hash code for this object.
read-only, inherited
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.
read-only, inherited
type IndexType?
Specifies how an index is stored in Isar.
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 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