attach method
Attach connector to the validation controller
Implementation
@override
void attach(ValidationController<K> controller) {
if (_controller != null) {
throw UnsupportedError(
'Validator can be attached to only single controller');
}
_controller = controller;
_controller!.addConnector(this);
}