allControlsDisabled method Null safety

  1. @override
bool allControlsDisabled()
override

Returns true if all children disabled, otherwise returns false.

This is for internal use only.

Implementation

@override
bool allControlsDisabled() {
  if (_controls.isEmpty) {
    return false;
  }
  return _controls.values.every((control) => control.disabled);
}