containsAll method

  1. @override
bool containsAll(
  1. Iterable<Object?> other
)
override

Whether this ValueNotifier's value contains all the elements of other.

final charactersValueNotifier = <String>{'A', 'B', 'C'}.notifier;
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) =>
    _updateOnAction(() => value.containsAll(other));