Unique class
An annotation to create a unique index for a field of an Entity class. See Unique.new.
Constructors
- Unique.new({ConflictStrategy onConflict = ConflictStrategy.fail})
-
Creates a unique index for a field of an Entity class.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onConflict → ConflictStrategy
-
The strategy to use when a conflict is detected when an object is put.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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