-
-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoSuchMethodError: Class 'DateTime' has no instance getter 'isNotEmpty'. #142
Comments
It appears to be related to this code:
💡 Note that this may be related to the fact that I am using |
I confirmed that the issue has nothing to do with using the Am I doing something wrong? Or does the |
🤔 Is the validator completely redundant in this case? Can I trust that the Date Picker will ALWAYS yield a valid Date (or null/blank)? (If so, then I should simply remove the validator.) |
Hi @awhitford, The validator is supposed to be used to validate that a String conforms to a valid date string. Maybe we should rename the validator from |
Thank you for confirming. A rename isn't necessary -- just a comment for the developer is likely enough. |
Running into a strange problem... Have a field like:
When this field is empty, there is no form submission problem. However, when a date is specified, then I get an exception:
Please note that I am using version 3.5.4, Flutter 1.9.1+hotfix.2, and the iOS Simulator (Version 11.0).
The text was updated successfully, but these errors were encountered: