[SYNC]
This commit is contained in:
@@ -123,10 +123,9 @@ class AstromicFormController extends FormController {
|
|||||||
|
|
||||||
/// Remove the value of a hosted state variable using it's ID.
|
/// Remove the value of a hosted state variable using it's ID.
|
||||||
void removeValue(String id) {
|
void removeValue(String id) {
|
||||||
if (!_hostedValues.keys.toList().contains(id)) {
|
if (_hostedValues.keys.toList().contains(id)) {
|
||||||
throw Exception('Value of id `$id` not found to be removed.');
|
_hostedValues.remove(id);
|
||||||
}
|
}
|
||||||
_hostedValues.remove(id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Validate hosted values.
|
/// Validate hosted values.
|
||||||
|
|||||||
Reference in New Issue
Block a user