anyControls method Null safety

  1. @override
bool anyControls(
  1. bool condition(
    1. AbstractControl
    )
)
override

Implementation

@override
bool anyControls(bool Function(AbstractControl<dynamic>) condition) {
  return _controls.values
      .any((control) => control.enabled && condition(control));
}