RealmObjectBase mixin Realm

An object that is persisted in Realm.

RealmObjects are generated from Realm data model classes marked with @RealmModel annotation and named with an underscore.

A data model class _MyClass will have a RealmObject generated with name MyClass.

RealmObject should not be used directly as it is part of the generated class hierarchy. ex: MyClass extends _MyClass with RealmObject.

Superclass Constraints
Implemented types


changes Stream<RealmObjectChanges<RealmObjectBase>>
Allows listening for property changes on this Realm object.
no setter
dynamic DynamicRealmObject
An object exposing dynamic API for this RealmObject instance.
hashCode int
The hash code for this object.
no setteroverride
isFrozen bool
True if the entity belongs to a frozen Realm.
no setterinherited
isManaged bool
True if the object belongs to a Realm.
no setterinherited
isValid bool
Gets a value indicating whether this object is managed and represents a row in the database.
no setter
objectSchema SchemaObject
Returns the schema for this object.
no setter
realm Realm
The Realm instance this object belongs to.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


changesFor([List<String>? keyPaths]) Stream<RealmObjectChanges<RealmObjectBase>>
Allows listening for property changes on this Realm object using the specified list of key paths. The key paths indicates which changes in properties should raise a notification.
freeze() RealmObjectBase
Creates a frozen snapshot of this RealmObject.
Returns all the objects of type T that link to this object via propertyName. Example:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.