Index class

Declares an index on an Entity. see: SQLite Index Documentation

Constructors

Index({String? name, bool unique = false, required List<String> value, String? where})
Declares an index on an Entity.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String?
Name of the index.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unique → bool
If set to true, this will be a unique index and any duplicates will be rejected.
final
value → List<String>
List of column names in the Index.
final
where → String?
The SQL expression of a partial index, which only indexes rows the expression is true for, e.g. 'email IS NOT NULL' for a unique index allowing multiple rows without an email. See SQLite documentation.
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