Answers for "dart merge an array of objects"

0

dart merge an array of objects

final arr3 = arr1.map((product) {
    final quantity = arr2
        .where((quantities) => quantities["id"] == product["id"])
        .map((quantities) => quantities["quantity"] as int)
        .first;
    return product..["quantity"] = quantity;
  });
Posted by: Guest on February-05-2022

Code answers related to "dart merge an array of objects"

Browse Popular Code Answers by Language