isEqual method

bool isEqual(
  1. List<E> other
)

Compares two lists for element-by-element equality.

Returns true if the lists are both null, or if they are both non-null, have the same length, and contain the same members in the same order. Returns false otherwise.

If the elements are maps, lists, sets, or other collections/composite objects, then the contents of those elements are not compared element by element unless their equality operators (Object.==) do so. For checking deep equality, consider using the DeepCollectionEquality class.

Implementation

bool isEqual(List<E> other) => value.isEqual(other);