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 (var i = 0, n = seq.length; i != n; ++i) {
    var 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;
}