registry property

RadioGroupRegistry<T>? get registry

The RadioGroupRegistry this client register to.

Setting this property automatically register to the new value and unregister the old value.

This should set to null when dispose.

Implementation

RadioGroupRegistry<T>? get registry => _registry;
set registry (RadioGroupRegistry<T>? newRegistry)

Implementation

set registry(RadioGroupRegistry<T>? newRegistry) {
  if (_registry != newRegistry) {
    _registry?.unregisterClient(this);
  }
  _registry = newRegistry;
  _registry?.registerClient(this);
}