compare method

int compare(
  1. List<T> other, [
  2. int compare(
    1. T a,
    2. T b
    )?
])

Implementation

int compare(List<T> other, [int Function(T a, T b)? compare]) =>
    compareListsBy<T>(this, other, compare!);