deputy method

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

Creates an Deputy cell from an existing Cell instance with reduced permissions.

Parameters:

  • test: Optional test object for validation
  • mapObject: Optional map object for transformation (Note: Either test or mapObject must be provided to create a deputy cell for specific function by applying validation rules)

Returns a new CellDeputy instance

Implementation

@override
CollectiveQueue<E> deputy({covariant TestCollective? test, covariant MapObject? mapObject}) {
  return CollectiveQueueDeputy<E>._(_properties.bind as CollectiveQueue<E>, test: test, mapObject: mapObject);
}