unique property

bool unique

states whether the index allows duplicate keys or not.

This is decided when the index is created, using the ObjectStore.createIndex method. This method takes an optional parameter, unique, which if set to true means that the index will not be able to accept duplicate entries.

Implementation

bool get unique;