getDiffsFromTwoArr static method

dynamic getDiffsFromTwoArr(
  1. List listA,
  2. List listB
)

Implementation

static getDiffsFromTwoArr(List<dynamic> listA, List<dynamic> listB) {
  var tempArr = [];
  tempArr.addAll(listA);
  tempArr.addAll(listB);
  List<dynamic> difference = tempArr
      .where(
          (element) => !listA.contains(element) || !listB.contains(element))
      .toList();

  return difference;
}