IsarLink<OBJ> class Null safety

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.
read-only, inherited
isAttached bool
Is the containing object managed by Isar?
read-only, inherited
isChanged bool
Have the contents been changed? If not, .save() is a no-op.
read-only, inherited
isLoaded bool
Has this link been loaded?
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value ↔ OBJ?
The linked object or null if no object is linked.
read / write

Methods

load() Future<void>
Loads the linked object(s) from the databse
inherited
loadSync() → void
Loads the linked object(s) from the databse
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 databse if there are changes.
inherited
saveSync() → void
Saves the linked object(s) to the databse if there are changes.
inherited
toString() String
A string representation of this object.
inherited

Operators

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