contains method
Checks if array contains a control by a given name
.
The name must be the string representation of the children index.
Returns true if collection contains the control, otherwise returns false.
Implementation
@override
bool contains(String name) {
final index = int.tryParse(name);
if (index != null && index < _controls.length) {
return true;
}
return false;
}