Record<T extends Entity> class abstract

A class that wraps an entity, and allows us to work with it before and during it's loading lifecycle.

Mixed in types
  • DiffDelegateMixin
Implementers
Available Extensions

Constructors

Record.idOnly(MKey? mkey)
Creates a record with only an ID
factory
Record.noKey(T value, [T initialize(T value)?])
Creates a record without a key (a new record, for example)
factory
Record.ofFuture(MKey mkey, Future<T> value, [T initialize(T? value)?])
Creates a new record based on a future
factory
Record.ofValue(MKey? mkey, T value, [T initialize(T value)?])
Creates a record based off a resolved value
factory

Properties

diffHashCode int
no setterinherited
diffKey → dynamic
no setterinherited
diffSource → dynamic
no setterinherited
future Future<T>
no setter
futureOr FutureOr<T>
no setter
hashCode int
The hash code for this object.
no setterinherited
id String?
no setter
isFuture bool
no setter
isNotLoaded bool
no setter
isResolved bool
no setter
mkey → MKey?
no setter
recordStream Stream<T>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
no setter
valueOrNull → T?
no setter

Methods

clone() Record<T>
diffEquals(dynamic other) bool
inherited
diffIdentical(dynamic other) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe(Listener<ChangeNotification<TrackedValue<T?>>> listener, {bool? fireImmediately}) → Dispose
toString() String
A string representation of this object.
inherited
update(T value, {bool force = true, bool silent = false}) → void

Operators

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

Static Methods

isRecordResolved<T extends Entity>() → Predicate<Record<T>>
keyed<T extends Entity>(T value) Record<T>
toId<T extends Entity>() → Mapping<Record<T>, String?>