WordsNumbers is a Flutter plugin that helps convert text numbers to their corresponding numeric values.
- Convert text numbers to numeric values
- Easy to use
This plugin was designed to help developers convert text numbers to their corresponding numeric values with ease.
To use this package :
- add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
words_numbers: ^0.0.3
Then, import the package in your Dart code:
To convert text numbers to numeric values, call the convertTextNumberToString() function:
String result = WordsNumbers.convertTextNumberToString("five hundred twenty-two");
This will return the string "522".
This project is licensed under the MIT License.