deputy method
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:
- Apply its own validation first
- Delegate to the bound cell
- Apply any mappings to results
- 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);
}