dispose method

void dispose()

Disposes this binder by detaching all listeners.

Call this from your widget/form lifecycle to prevent memory leaks. Note: This does NOT dispose the controller nor the control themselves; ownership remains with whoever created them.

Implementation

void dispose() {
  controller.removeListener(_onControllerChanged);
  control.valueNotifier.removeListener(_onControlChanged);
}