DataListMap<T extends DataMap> class

Permite el manejo tipado del tipo List */

Inheritance
Implemented types
Implementers

Constructors

DataListMap({String name = 'no-named', bool isData = false, required DataListCreateFn<T> create, bool no_update = false, bool required = false, String? label})

Properties

changed bool
determina si se han realizado cambios en el objeto
no setteroverride
completed Future
no setteroverride
create DataListCreateFn<T>
devuelve un elemento nuevo del datalist
final
enabled bool
getter/setter pairoverride
first → T
The first element.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isData bool
final
isEmpty bool
Whether this collection has no elements.
no setterinherited
isNotEmpty bool
Whether this collection has at least one element.
no setterinherited
iterator Iterator<T>
A new Iterator that allows iterating the elements of this Iterable.
no setterinherited
label String
getter/setter pairoverride
last → T
The last element.
no setterinherited
length int
The number of elements in this Iterable.
no setterinherited
msg String
getter/setter pairoverride
name String
final
no_update bool
getter/setter pairoverride
objectId int
finalinherited
parent DataFace?
getter/setter pairoverride
process List<Future>
getter/setter pairoverride
required bool
getter/setter pairoverride
rules List<DataRule>
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
single → T
Checks that this iterable has only one element, and returns that element.
no setterinherited
type DataType
final

Methods

addList(List<Map> data) → dynamic
agrega los elementos de un List
addMap(Map? data) → T
agrega un elemento a partir de un Map */
any(bool test(T element)) bool
Checks whether any element of this iterable satisfies test.
inherited
cancelEventByName(String name) → dynamic
inherited
cast<R>() Iterable<R>
A view of this iterable as an iterable of R instances.
inherited
changes(dynamic x) bool
devuelve los cambios realizados
override
checkRules() Future
agrega un elemento a partir de un Map */
contains(Object? element) bool
Whether the collection contains an element equal to element.
inherited
elementAt(int index) → T
Returns the indexth element.
inherited
every(bool test(T element)) bool
Checks whether every element of this iterable satisfies test.
inherited
expand<T>(Iterable<T> toElements(T element)) Iterable<T>
Expands each element of this Iterable into zero or more elements.
inherited
firstWhere(bool test(T element), {T orElse()?}) → T
The first element that satisfies the given predicate test.
inherited
fold<T>(T initialValue, T combine(T previousValue, T element)) → T
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
inherited
followedBy(Iterable<T> other) Iterable<T>
Creates the lazy concatenation of this iterable and other.
inherited
forEach(void action(T element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
get() List<Map<String, dynamic>>
para acceder al contenido
override
getById(String x) → T?
join([String separator = ""]) String
Converts each element to a String and concatenates the strings.
inherited
lastWhere(bool test(T element), {T orElse()?}) → T
The last element that satisfies the given predicate test.
inherited
map<T>(T toElement(T e)) Iterable<T>
The current elements of this iterable modified by toElement.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(String name, EventFn fn) EventHandler
inherited
onChange(DataFace? data) → void
disponible para sobreescribir y realizar validaciones */
override
oneTimeOn(String name, EventFn fn) EventHandler
inherited
onValid(dynamic fn(DataFace data)) → dynamic
override
reduce(T combine(T value, T element)) → T
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
inherited
refresh() → void
permite actualizar cuando el objeto esta conectado a componentes graficos */
override
removeItem(T x) → dynamic
request([String? x]) Future
resetTo({dynamic value}) → void
para restablecer conenido
override
resetToDefault() → dynamic
restablecer valore predeterminados
override
setTo({dynamic value}) → void
para modificar contenido
override
singleWhere(bool test(T element), {T orElse()?}) → T
The single element that satisfies test.
inherited
skip(int count) Iterable<T>
Creates an Iterable that provides all but the first count elements.
inherited
skipWhile(bool test(T value)) Iterable<T>
Creates an Iterable that skips leading elements while test is satisfied.
inherited
take(int count) Iterable<T>
Creates a lazy iterable of the count first elements of this iterable.
inherited
takeWhile(bool test(T value)) Iterable<T>
Creates a lazy iterable of the leading elements satisfying test.
inherited
toList({bool growable = true}) List<T>
Creates a List containing the elements of this Iterable.
inherited
toSet() Set<T>
Creates a Set containing the same elements as this iterable.
inherited
toString() String
Returns a string representation of (some of) the elements of this.
inherited
trigger(String name, [dynamic arg]) Future<void>
inherited
undo() DataFace<List<Map<String, dynamic>>>
deshace los cambios realizados*/
override
valid() → void
override
where(bool test(T element)) Iterable<T>
Creates a new lazy Iterable with all elements that satisfy the predicate test.
inherited
whereKey<R>(List<String> key, Map<String, dynamic> find) List<T>
permite buscar mediante la comparacion con ula lista especificada */
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
operator [](int index) → dynamic
inherited