equalsTo method
Returns true
if the internals of Set and others
are compared and match.
Returns true
if both itself and others
are null
.
Setとothers
の内部を比較して一致している場合true
を返します。
自身とothers
が両方ともNullな場合true
を返します。
Implementation
bool equalsTo(Set<T>? others) {
if (this == null && others != null) {
return false;
}
if (this != null && others == null) {
return false;
}
if (this == null && others == null) {
return true;
}
return this!.equalsTo(others!);
}