containsAll method
Whether this set contains all the elements of other
.
final characters = <String>{'A', 'B', 'C'};
final containsAB = characters.containsAll({'A', 'B'});
print(containsAB); // true
final containsAD = characters.containsAll({'A', 'D'});
print(containsAD); // false
Implementation
@override
bool containsAll(Iterable<Object?> other) {
if (other is JObject &&
Jni.env.IsInstanceOf((other as JObject).reference.pointer,
_collectionClass.reference.pointer)) {
return _containsAllId(
this, const jbooleanType(), [(other as JObject).reference.pointer]);
}
return super.containsAll(other);
}