AsymmetricObject mixin
Base for any object that can be persisted in a Realm, but cannot be retrieved, hence cannot be modified.
The benefit of using AsymmetricObject is that synchronization is one-way, and thus performs much better. However, they cannot be queried, or retrieved locally, which limits their use-cases greatly.
Use AsymmetricObject when you have a write-/only use case. You use it by parsing ObjectType.asymmetricObject to the RealmModel annotation.
- Superclass constraints
Properties
-
changes
→ Stream<
RealmObjectChanges< RealmObjectBase> > -
Allows listening for property changes on this Realm object.
no setterinherited
- dynamic → DynamicRealmObject
-
An object exposing dynamic API for this
RealmObject
instance.latefinalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- 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 setterinherited
- objectSchema → SchemaObject
-
Returns the schema for this object.
no setterinherited
- realm → Realm
-
The Realm instance this object belongs to.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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.
inherited
-
freeze(
) → RealmObjectBase -
Creates a frozen snapshot of this
RealmObject
.inherited -
getBacklinks<
T> (String propertyName) → RealmResults< T> -
Returns all the objects of type
T
that link to this object viapropertyName
. Example: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