Skip to content
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

_tryParse method not working correctly #46

Open
nsvetlakov opened this issue Jun 5, 2022 · 0 comments
Open

_tryParse method not working correctly #46

nsvetlakov opened this issue Jun 5, 2022 · 0 comments

Comments

@nsvetlakov
Copy link

/// try to parse the given string into a number. num? _tryParse(String value) { final newValue = num.tryParse(value) - forget here return newValue; }
you forget to add = ?? 0;

and one more

here

if (newValue.isEmpty) { // _defaultValidator(newValue) == null

you can check like this.

please fix this in your code.
An error comes

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant