attach method

  1. @override
void attach(
  1. ValidationController<K> controller
)
override

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);
}