schema2 method

SdbIndexSchema schema2(
  1. String keyPath1,
  2. String keyPath2, {
  3. bool? unique,
})

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

Implementation

SdbIndexSchema schema2(String keyPath1, String keyPath2, {bool? unique}) {
  return SdbIndexSchema(
    this,
    SdbKeyPath.multi([
      SdbCodec.defaultCodec.sdbKeyPath<I1>(keyPath1),
      SdbCodec.defaultCodec.sdbKeyPath<I2>(keyPath2),
    ]),
    unique: unique ?? false,
  );
}