Entities<Id, E extends Entity<Id>> class

Constructors

Entities(Map<Id, E> _entities)
const
Entities.empty()
factory
Entities.fromIterable(Iterable<E> entities)
factory

Properties

entities Iterable<E>
no setter
hashCode int
The hash code for this object.
no setterinherited
ids Iterable<Id>
no setter
length int
no setter
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

byId(Id id) → E?
byIds(List<Id> ids) List<E>
exist(Id id) bool
marge(Entities<Id, E> other) Entities<Id, E>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(E entity) Entities<Id, E>
putAll(Iterable<E> entities) Entities<Id, E>
remove(E entity) Entities<Id, E>
removeAll(Iterable<E> entities) Entities<Id, E>
removeById(Id id) Entities<Id, E>
toString() String
A string representation of this object.
inherited
where(bool test(E)) Entities<Id, E>

Operators

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