Parents class
Constructors
- Parents()
Properties
- concept ↔ Concept
-
getter/setter pairinherited
- count → int
-
no setterinherited
- exceptions ↔ ValidationExceptions
-
getter/setter pairinherited
- externalCount → int
-
no setter
- first → Property
-
The first element.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
internalList
← List<
Property> -
no getterinherited
- isEmpty → bool
-
Whether this collection has no elements.
no setterinherited
- isNotEmpty → bool
-
Whether this collection has at least one element.
no setterinherited
-
iterator
→ Iterator<
Property> -
A new
Iteratorthat allows iterating the elements of thisIterable.no setterinherited - last → Property
-
The last element.
no setterinherited
- length → int
-
The number of elements in this Iterable.
no setterinherited
- maxc ↔ String
-
getter/setter pairinherited
- minc ↔ String
-
getter/setter pairinherited
- post ↔ bool
-
getter/setter pairinherited
- pre ↔ bool
-
getter/setter pairinherited
- propagateToSource ↔ bool
-
getter/setter pairinherited
- randomGen ↔ Random
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- single → Property
-
Checks that this iterable has only one element, and returns that element.
no setterinherited
-
source
↔ Entities<
Property> ? -
getter/setter pairinherited
Methods
-
add(
Property entity) → bool -
inherited
-
addFrom(
Entities< Property> entities) → bool -
inherited
-
any(
bool f(Property entity)) → bool -
Checks whether any element of this iterable satisfies
test.inherited -
at(
int index) → Property -
inherited
-
cast<
T> () → Iterable< T> -
A view of this iterable as an iterable of
Rinstances.inherited -
clear(
) → void -
inherited
-
contains(
Object? entity) → bool -
Whether the collection contains an element equal to
element.inherited -
copy(
) → Entities< Property> -
Copies the entities.
It is not a deep copy.
inherited
-
display(
{String title = 'Entities', String prefix = '', bool withOid = true, bool withChildren = true, bool withInternalChildren = true}) → void -
Displays (prints) a title, then entities.
inherited
-
displayCodeMap(
) → void -
inherited
-
displayIdMap(
) → void -
inherited
-
displayOidMap(
) → void -
inherited
-
elementAt(
int index) → Property -
Returns the
indexth element.inherited -
every(
bool f(Property entity)) → bool -
Checks whether every element of this iterable satisfies
test.inherited -
expand<
T> (Iterable< T> toElements(Property element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
inherited
-
firstWhere(
bool f(Property entity), {Property orElse()?}) → Property -
The first element that satisfies the given predicate
test.inherited -
firstWhereAttribute(
String code, Object attribute) → Property -
inherited
-
fold<
T> (T initialValue, T combine(T previousValue, Property element)) → T -
'Entities.fold' ('dynamic Function(dynamic, dynamic Function(dynamic, E))')
'Iterable.fold' ('T Function
inherited
-
followedBy(
Iterable< Property> other) → Iterable<Property> -
Creates the lazy concatenation of this iterable and
other.inherited -
forEach(
void action(Property element)) → void -
Invokes
actionon each element of this iterable in iteration order.inherited -
fromJson(
String entitiesJson) → void -
inherited
-
fromJsonList(
dynamic entitiesList, [Entity< Entity> ? internalParent]) → void -
Loads entities without validations to this, which must be empty.
inherited
-
integrate(
IEntities< Property> fromEntities) → void -
inherited
-
integrateAdd(
IEntities< Property> addEntities) → void -
inherited
-
integrateRemove(
IEntities< Property> removeEntities) → void -
inherited
-
integrateSet(
IEntities< Property> setEntities) → void -
inherited
-
internalChild(
Oid oid) → Entities< Entity> ? -
inherited
-
internalSingle(
Oid oid) → Entity< Entity> ? -
inherited
-
isValid(
Property entity) → bool -
inherited
-
join(
[String separator = '']) → String -
Converts each element to a String and concatenates the strings.
inherited
-
lastWhere(
bool f(Property entity), {Property orElse()?}) → Property -
The last element that satisfies the given predicate
test.inherited -
map<
T> (T f(Property)) → Iterable< T> -
The current elements of this iterable modified by
toElement.inherited -
newEntities(
) → Entities< Property> -
inherited
-
newEntity(
) → Entity< Property> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
order(
[int compare(Property a, Property b)?]) → Entities< Property> -
If compare function is not passed, compareTo method will be used.
If there is no compareTo method on specific entity,
the Entity.compareTo method will be used (code if not null, otherwise id).
inherited
-
postAdd(
Property entity) → bool -
inherited
-
postRemove(
Property entity) → bool -
inherited
-
preRemove(
Property entity) → bool -
inherited
-
random(
) → Property -
inherited
-
reduce(
Property combine(Property value, Property entity)) → Property -
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
inherited
-
remove(
Property entity) → bool -
inherited
-
removeFrom(
Entities< Property> entities) → bool -
inherited
-
selectWhere(
bool f(Property)) → Entities< Property> -
inherited
-
selectWhereAttribute(
String code, Object attribute) → Entities< Property> -
inherited
-
selectWhereParent(
String code, IEntity< IEntity> parent) → Entities<Property> -
inherited
-
setAttributesFrom(
Entities< Property> entities) → bool -
inherited
-
singleWhere(
bool f(Property entity), {Property orElse()?}) → Property -
The single element that satisfies
test.inherited -
singleWhereAttributeId(
String code, Object attribute) → Property? -
inherited
-
singleWhereCode(
String? code) → Property? -
inherited
-
singleWhereId(
Id id) → Property? -
inherited
-
singleWhereOid(
Oid oid) → Property? -
inherited
-
skip(
int n) → Iterable< Property> -
'Entities.firstWhere' ('E Function(bool Function(E), {E Function() orElse})')
inherited
-
skipFirst(
int n) → Entities< Property> -
inherited
-
skipFirstWhile(
bool f(Property entity)) → Entities< Property> -
inherited
-
skipWhile(
bool f(Property entity)) → Iterable< Property> -
Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited -
sort(
[int compare(Property a, Property b)?]) → void -
If compare function is not passed, compareTo method will be used.
If there is no compareTo method on specific entity,
the Entity.compareTo method will be used (code if not null, otherwise id).
inherited
-
take(
int n) → Iterable< Property> -
Creates a lazy iterable of the
countfirst elements of this iterable.inherited -
takeFirst(
int n) → Entities< Property> -
inherited
-
takeFirstWhile(
bool f(Property entity)) → Entities< Property> -
inherited
-
takeWhile(
bool f(Property entity)) → Iterable< Property> -
Creates a lazy iterable of the leading elements satisfying
test.inherited -
toJson(
) → String -
inherited
-
toJsonList(
) → List< Map< String, Object> > -
inherited
-
toList(
{bool growable = true}) → List< Property> -
Creates a List containing the elements of this Iterable.
inherited
-
toSet(
) → Set< Property> -
Creates a Set containing the same elements as this iterable.
inherited
-
toString(
) → String -
entity
Returns a string that represents this entity by using oid and code.
inherited
-
update(
Property beforeEntity, Property afterEntity) → bool -
Updates removes the before entity and adds the after entity, in order to
update oid, code and id entity maps.
inherited
-
validateCardinality(
bool isValid) → bool -
inherited
-
validateIncrementAndRequired(
dynamic entity, bool isValid) → bool -
inherited
-
validateUnique(
dynamic entity, bool isValid) → bool -
inherited
-
where(
bool f(Property entity)) → Iterable< Property> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test.inherited -
whereType<
T> () → Iterable< T> -
Creates a new lazy Iterable with all elements that have type
T.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited