deputy method

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

Creates an deputy for this unmodifiable list.

Note: The deputy will still enforce unmodifiability of the underlying list.

Parameters:

  • test: Additional test rules
  • map: Value mapping configuration

Implementation

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