deputy method

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

Creates a new deputy for this unmodifiable value.

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

Parameters:

  • test: Additional validation rules
  • map: Value transformations

Implementation

@override
CollectiveValue<V> deputy({covariant TestCollective? test, covariant MapObject? mapObject}) {
  return UnmodifiableCollectiveValue.fromProperties(
      _properties.deputy(bind: this, test: test, mapObject: mapObject),
      unmodifiableElement: _unmodifiableElement
  );
}