same method

bool same(
  1. T a,
  2. T b
)

Whether two values are the same, for mixed-value detection.

Implementation

bool same(T a, T b) => _equals?.call(a, b) ?? a == b;