Index class

Marks a field (or set of fields, in a future) for indexing. The MVP does not emit the CREATE INDEX DDL; the annotation is metadata-only and surfaces in the ColumnMeta for downstream tooling.

Constructors

Index({bool unique = false, String? name})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String?
Optional index name. If null (the default), the codegen derives the name as <table>_<column>_idx (or _unq for unique indexes).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unique → bool
Whether the index is unique. Defaults to false.
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