seqWithValue static method

List seqWithValue(
  1. List seq,
  2. Map<String, dynamic> values
)

Implementation

static List<dynamic> seqWithValue(List seq, Map<String, dynamic> values) {
  List<dynamic> r = [];
  for (int i = 0, n = seq.length; i != n; ++i) {
    final u = seq[i];
    // print("seqWithValue  u.id: ${u.id} ");

    if (values.keys.contains(u.id)) {
      r.add(u);
    } else {
      // print("seqWithValue  u.id: ${u.id} is not add ");
    }
  }
  return r;
}