phonewords 1.1.1
phonewords: ^1.1.1 copied to clipboard
A package to generate numeric phone numbers from words.
import 'package:phonewords/phonewords.dart'; // Import the phonewords library
void main() {
print(numberFromString(
"1-800-543-DART")); // Use the phonewords library function, numberFromString, to convert the phone number
print(numberFromString(
"1800333HELP")); // Another example of using the function to convert a phone number. You don't need to add dashes or spaces; the function will handle it.
print(numberFromString(
"1-800-MY-TAXES")); // Yet another example, where the function converts a phone number with letters to digits.
}