onDisabledChanged method

  1. @override
void onDisabledChanged(
  1. bool isDisabled
)

This function is called when the control status changes to or from "DISABLED".

Depending on the value, it will enable or disable the appropriate DOM element.

Implementation

@override
void onDisabledChanged(bool isDisabled) {
  disabled = isDisabled;
  _changeDetector.markForCheck();
}