Entity<Key extends EntityKey> class
Represents an entity with a unique identifier and timestamp.
Constructors
Properties
-
filtered
→ Map<
String, dynamic> -
no setter
- filteredJson → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setter
- idInt → int
-
The unique identifier of the entity as an integer.
no setter
- idOrNull ↔ String?
-
getter/setter pair
-
ignoredKeys
→ Iterable<
String> -
no setter
- json → String
-
no setter
- key → Key
-
The key associated with the entity.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ Map<
String, dynamic> -
Returns the entity as a map.
no setter
- timeMills → int
-
no setter
- timeMillsOrNull ↔ int?
-
getter/setter pair
Methods
-
isInsertable(
String key, dynamic value) → bool -
makeKey(
) → Key - Constructs the key for the entity.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of the source map.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- generateID → String
-
Generates a unique identifier for the entity.
no setter
- generateTimeMills → int
-
Generates a timestamp for the entity.
no setter
Static Methods
-
value<
T> (String key, dynamic source, [EntityBuilder< T> ? builder]) → T? - Returns the value associated with the given key from the source.
-
values<
T> (String key, dynamic source, [EntityBuilder< T> ? builder]) → List<T> ? - Returns a list of values associated with the given key from the source, cast to the specified type.