schema method

SdbIndexSchema schema({
  1. required Object keyPath,
  2. bool? unique,
})

Create store schema, keyPath is String, a List<String> or SdbKeyPath

Implementation

SdbIndexSchema schema({required Object keyPath, bool? unique}) {
  return SdbIndexSchema(
    this,
    sdbKeyPathFromAny(keyPath),
    unique: unique ?? false,
  );
}