deputy method

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

Creates an deputy (helper) for this unmodifiable queue with optional test and map configurations.

Returns a new UnmodifiableCollectiveQueue that acts as a view of this queue with the additional test/map configurations applied.

Implementation

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