fxOverlayItemsEqual<T> function

bool fxOverlayItemsEqual<T>(
  1. T? a,
  2. T? b,
  3. bool comparer(
    1. T a,
    2. T b
    )?
)

Implementation

bool fxOverlayItemsEqual<T>(
  T? a,
  T? b,
  bool Function(T a, T b)? comparer,
) {
  if (a == null || b == null) return false;
  return comparer?.call(a, b) ?? a == b;
}