MigrationRealm class Realm
A class used during a migration callback. It exposes a set of dynamic API as well as the Realm config and schema.
- Inheritance
-
- Object
- DynamicRealm
- MigrationRealm
Properties
- config → Configuration
-
The Configuration object used to open this Realm
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → RealmSchema
-
The schema of this Realm. If the Configuration was created with a
non-empty list of schemas, this will match the collection. Otherwise,
the schema will be read from the file.
no setter
Methods
-
all(
String className) → RealmResults< RealmObject> -
Returns all
RealmObject
s of typeclassName
in theRealm
inherited -
create(
String className, {Object? primaryKey}) → RealmObject -
Creates a managed RealmObject with the specified
className
andprimaryKey
.inherited -
find(
String className, Object primaryKey) → RealmObject? -
Fast lookup for a
RealmObject
of typeclassName
with the specifiedprimaryKey
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited