updateControl method
API to update SheetControl.
Parameters:
sheetControl
SheetControl to be updated.
The possible values are:
AddressControl
AmountBoxControl
PlainTextControl
Return 'true', if successfully updated. Otherwise, return 'false'.
Exceptions:
Throws an ArgumentError if the sheetControl is null.
Implementation
bool updateControl(SheetControl sheetControl) {
int foundIndex = 0;
if (sheetControls != null) {
for (; foundIndex < sheetControls!.length;foundIndex++){
if (sheetControl == sheetControls![foundIndex]) {
sheetControls![foundIndex]=sheetControl;
return true;
}
}
}
return false;
}