Isar constructor

  1. @protected
Isar(
  1. String name,
  2. String schema
)

Implementation

@protected
Isar(this.name, String schema) {
  if (_schema != null && _schema != schema) {
    throw 'Cannot open multiple Isar instances with different schema.';
  }
  _schema = schema;
  _instances[name] = this;
  for (var callback in _openCallbacks) {
    callback(this);
  }
}