EntityReferenceBase<T> class abstract

Base class for EntityReference and EntityReferenceList.

Implementers
Available extensions

Properties

currentValue → Object?
Returns the current internal value (entity or ID).
no setter
entityHandler → EntityHandler<T>?
The EntityHandler for this entity type.
no setter
entityProvider → EntityProvider?
The EntityProvider for this entity type.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isLoaded → bool
Returns true if the entity is loaded;
no setter
isLoaded → bool

Available on EntityReferenceBase<T>?, provided by the NullEntityReferenceBaseExtension extension

no setter
isNotNull → bool
Returns true if this reference is NOT null.
no setter
isNotNull → bool

Available on EntityReferenceBase<T>?, provided by the NullEntityReferenceBaseExtension extension

no setter
isNull → bool
Returns true if this reference is null.
no setter
isNull → bool

Available on EntityReferenceBase<T>?, provided by the NullEntityReferenceBaseExtension extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Type
The entity Type.
no setter
typeName → String
The entity Type name.
no setter

Methods

cast<E>() → EntityReferenceBase<E>
copy({bool withEntity = true}) → EntityReferenceBase<T>
disposeInternalHandlers() → void
Disposes internal objects that are not necessary after resolve this instance. Useful when passing this instance to another Isolate.
get() → FutureOr<Object?>
Returns the current entity/entities or fetches.
getNotNull() → FutureOr
Same as get but non-nullable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() → FutureOr
Refreshes fetching it.
resolve() → void
Ensures that this instance is resolved. See disposeInternalHandlers.
toJson([JsonEncoder? jsonEncoder]) → Map<String, dynamic>?
Encodes to JSON.
toString({bool withT = true}) → String
A string representation of this object.
override

Operators

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

Static Methods

resolveTypeName(Type type) → String