[0.1.2]
This commit is contained in:
@@ -97,12 +97,7 @@ class AstromicFormController extends FormController {
|
|||||||
/// Get the value of a hosted state variable using it's ID.
|
/// Get the value of a hosted state variable using it's ID.
|
||||||
T? getValue<T>(String id) {
|
T? getValue<T>(String id) {
|
||||||
prepareValue(id, false);
|
prepareValue(id, false);
|
||||||
|
|
||||||
if (_hostedValues[id]?.$1 is (T?, bool)) {
|
|
||||||
return _hostedValues[id]?.$1;
|
return _hostedValues[id]?.$1;
|
||||||
} else {
|
|
||||||
throw FlutterError('Value found but is not of the type $T, it\'s of type ${_hostedValues[id]?.$1.runtimeType}');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user