updateControl method

void updateControl(
  1. String key,
  2. VoFormControl updater(
    1. VoFormControl value
    )
)

Implementation

void updateControl(
  String key,
  VoFormControl Function(VoFormControl value) updater,
) {
  if (!_controls.containsKey(key)) {
    throw Exception('Control with key $key not found');
  }
  _controls[key] = updater(_controls[key]!);
}