compare method

int compare(
  1. dynamic a,
  2. dynamic b
)

Implementation

int compare(dynamic a, dynamic b) {
  return _compareWithNull(
    a,
    b,
    () => toNumber(a.toString()).compareTo(toNumber(b.toString())),
  );
}