fromListMap static method

List<RouteQueueEntry> fromListMap(
  1. List data,
  2. RouteQueue parent
)

Implementation

static List<RouteQueueEntry> fromListMap(List data, RouteQueue parent) {
  final list = <RouteQueueEntry>[];
  RouteQueueEntry? last;

  for (var item in data) {
    assert(item is Map);
    final current = RouteQueueEntry.fromJson(item, parent.delegate);

    last?._next = current;
    current
      .._queue = parent
      .._pre = last;
    last = current;
    list.add(current);
  }

  return list;
}