isEquals function

bool isEquals(
  1. Object? o1,
  2. Object? o2, [
  3. bool deep = false
])

Returns true if o1 and o2 are equals.

deep If true checks the collections deeply.

Implementation

bool isEquals(Object? o1, Object? o2, [bool deep = false]) {
  if (deep) {
    return isEqualsDeep(o1, o2);
  } else {
    return o1 == o2;
  }
}