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

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 RealmObjects of type className in the Realm
inherited
create(String className, {Object? primaryKey}) → RealmObject
Creates a managed RealmObject with the specified className and primaryKey.
inherited
find(String className, Object primaryKey) → RealmObject?
Fast lookup for a RealmObject of type className with the specified primaryKey.
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