RealmModel.using constructor

const RealmModel.using({
  1. ObjectType baseType = ObjectType.realmObject,
  2. GeneratorConfig generatorConfig = const GeneratorConfig(),
})

Creates a new instance of RealmModel optionally specifying the baseType and generatorConfig.

Implementation

const RealmModel.using({
  this.baseType = ObjectType.realmObject,
  this.generatorConfig = const GeneratorConfig(),
});