EntityReferenceBase<T> class
abstract
Base class for EntityReference and EntityReferenceList.
- Implementers
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 - isNotNull → bool
-
Returns
true
if this reference is NOTnull
.no setter - isNull → bool
-
Returns
true
if this reference isnull
.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> -
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.
-
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