isSameData<T> function

bool isSameData<T>(
  1. List<Choice<T>> list1,
  2. List<Choice<T>> list2
)

Implementation

bool isSameData<T>(List<Choice<T>> list1, List<Choice<T>> list2) {
  if (list1.length != list2.length) return false;

  return Set.from(list1).containsAll(list2);
}