SdbStoreSchemaDef constructor

SdbStoreSchemaDef({
  1. required String name,
  2. SdbKeyPath? keyPath,
  3. bool autoIncrement = false,
  4. List<SdbIndexSchemaDef> indexes = const [],
})

Store schema definition

Implementation

SdbStoreSchemaDef({
  required this.name,
  this.keyPath,
  this.autoIncrement = false,
  List<SdbIndexSchemaDef> indexes = const [],
}) : indexes = List.of(indexes)
       ..sort((index1, index2) => index1.name.compareTo(index2.name));