deputy method

  1. @override
CollectiveSet<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
CollectiveSet<E> deputy({covariant TestCollective? test, covariant MapObject? mapObject}) {
  return CollectiveSetDeputy<E>._(_properties.bind as CollectiveSet<E>, test: test, mapObject: mapObject);
}