We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@flutter_masked_text.dart
double get numberValue { if (this.text == '') return 0; List<String> parts = []; if (this.text.length == 1 && this.text!=decimalSeparator && this.text!=thousandSeparator) { for (var i = 0; i < precision - this.text.length; i++) { parts.insert(parts.length, "0"); } parts.insert(parts.length, this.text); } else parts = _getOnlyNumbers(this.text).split('').toList(growable: true); if (parts.length >= precision) parts.insert(parts.length - precision, decimalSeparator); return double.parse(parts.join()); }
Improvements :
Thanks
The text was updated successfully, but these errors were encountered:
And this part also
this.addListener(() { this.updateValue(this.numberValue); // this.afterChange(this.text, this.numberValue); --> empty function });
Sorry, something went wrong.
Update getter numberValue to handle empty field error as per fix bh…
numberValue
bafe53a
…rott#49
No branches or pull requests
@flutter_masked_text.dart
Improvements :
Thanks
The text was updated successfully, but these errors were encountered: