deputy method

  1. @override
Cell deputy({
  1. covariant TestObject<Cell>? test,
  2. covariant MapObject? mapObject,
})
override

Creates a new deputy layered on top of this one.

Parameters match main constructor - each call creates a new wrapper layer.

Returns a new CellDeputy with combined:

  • Validation rules
  • Mapping transformations
  • Deputy capabilities

The new deputy will:

  1. Apply its own validation first
  2. Delegate to the bound cell
  3. Apply any mappings to results
  4. Preserve all deputy functionality

Note: This method does not modify the original cell.

Example:

final cell = Cell();
final deputy = cell.deputy(test: TestObject(...));
final newDeputy = deputy.deputy(test: TestObject(...));

Implementation

@override
Cell deputy({covariant TestObject<Cell>? test, covariant MapObject? mapObject}) {
  return CellDeputy(bind: _properties.bind!, test: test, mapObject: mapObject);
}