group<T extends FormGroup> method
Returns the nested FormGroup with the given name
.
Throws if the control does not exist or is not a group.
Implementation
T group<T extends FormGroup>(String name) {
final ctrl = controls[name];
if (ctrl == null) throw Exception('FormGroup "$name" não encontrado');
return ctrl as T;
}