From aad7ed665c767e57b609daecb325723f2c5b9ba6 Mon Sep 17 00:00:00 2001 From: "Michael W. Aziz" Date: Sun, 23 Mar 2025 16:15:19 +0200 Subject: [PATCH] [0.1.2] --- lib/src/form/src/controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/form/src/controller.dart b/lib/src/form/src/controller.dart index cc9a205..975c26d 100644 --- a/lib/src/form/src/controller.dart +++ b/lib/src/form/src/controller.dart @@ -98,7 +98,7 @@ class AstromicFormController extends FormController { T? getValue(String id) { prepareValue(id, false); - if (_hostedValues[id]?.$1 is T?) { + if (_hostedValues[id]?.$1 is (T?, bool)) { return _hostedValues[id]?.$1; } else { throw FlutterError('Value found but is not of the type $T, it\'s of type ${_hostedValues[id]?.$1.runtimeType}');