isEquals function
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;
}
}