valueTransformer empty to null value #1286
Unanswered
marco-origam
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I have the same Problem here... valueTransformer: (String? value) {
if (value == null) return null;
return double.tryParse(value);
}, but the field is always exact the data, were i have written into the field. if (formKey.currentState!.saveAndValidate()) {
dynamic data = formKey.currentState?.value; |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need the field to be null when it's empty like below:
So, im using valueTransformer as follows:
But, im still getting:
Is there a way i can achieve it?
Beta Was this translation helpful? Give feedback.
All reactions