arraysToList<T extends Object> method

  1. @override
List<T> arraysToList<T extends Object>(
  1. T map(
    1. Arr array
    ), {
  2. int? limit,
})
override

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);
}