deputy method

  1. @override
CollectiveSet<E> deputy({
  1. covariant TestCollective<dynamic, Collective>? test,
  2. covariant MapObject? mapObject,
})
override

Creates an unmodifiable deputy for this set.

Note: While the deputy can be created, modification operations will still throw.

Implementation

@override
CollectiveSet<E> deputy({covariant TestCollective? test, covariant MapObject? mapObject}) {
  return UnmodifiableCollectiveSet.fromProperties(_properties.deputy(bind: this, test: test, mapObject: mapObject),
      unmodifiableElement: _unmodifiableElement,
      elements: this
  );
}