all method

List<O> all({
  1. int? limit,
})

Implementation

List<O> all({int? limit}) {
  var itr = iterable();

  if (limit != null && limit > 0) {
    itr = itr.take(limit);
  }

  return itr.toList();
}