IsarLink<OBJ> class abstract

Establishes a 1:1 relationship with the same or another collection. The target collection is specified by the generic type argument.

Constructors

Create an empty, unattached link. Make sure to provide the correct generic argument.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isAttached bool
Is the containing object managed by Isar?
no setterinherited
isChanged bool
Have the contents been changed? If not, .save() is a no-op.
no setterinherited
isLoaded bool
Has this link been loaded?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ OBJ?
The linked object or null if no object is linked.
getter/setter pair

Methods

load() Future<void>
Loads the linked object(s) from the database
inherited
loadSync() → void
Loads the linked object(s) from the database
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() Future<void>
Unlinks all linked object(s).
inherited
resetSync() → void
Unlinks all linked object(s).
inherited
save() Future<void>
Saves the linked object(s) to the database if there are changes.
inherited
saveSync() → void
Saves the linked object(s) to the database if there are changes.
inherited
toString() String
A string representation of this object.
inherited

Operators

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