dispose method

  1. @override
void dispose()
override

Dispose method.

It should be invoked when ValidationController no longer needed

Implementation

@override
void dispose() {
  _disposed = true;

  [..._connectors].forEach((validator) {
    validator.detach();
  });

  _connectors.clear();
}