isEqual function

dynamic isEqual(
  1. dynamic a,
  2. dynamic b
)

Implementation

isEqual(dynamic a, dynamic b) {
  if(a is Map && b is Map){
    return const MapEquality().equals(a, b);
  }else if(a is List && b is List){
    return const ListEquality().equals(a, b);
  } else {
    return identical(a, b);
  }
}