getSheetControl method
API to get SheetControl.
Parameters:
controlId ID to find SheetControl.
Return SheetControl which has the controlId.
Exceptions:
Throws an ArgumentError if the controlId is empty.
API Level 1.3
Implementation
SheetControl? getSheetControl(String controlId) {
if(controlId.isNotEmpty){
for (SheetControl sheetControl in sheetControls!) {
if (controlId == sheetControl.controlId) {
return sheetControl;
}
}
} else{
throw ArgumentError("You must provide valid controlId");
}
return null;
}