arraysToList<T extends Object> method
Returns a list of T
mapped from child data arrays using map
function.
An optional limit
when provided limits the number of returned objects.
The returned list is immutable.
Other child objects (that cannot be represented as a data array) are omitted from an iterable.
Implementation
@override
List<T> arraysToList<T extends Object>(
T Function(Arr array) map, {
int? limit,
}) {
var arrs = arrays;
if (limit != null) {
arrs = arrs.take(limit);
}
return arrs.map<T>(map).toList(growable: false);
}