digit_to_word 1.2.1 digit_to_word: ^1.2.1 copied to clipboard
Convert digits to their english word representations. 4235 becomes four thousand two hundred thirty-five, etc.
library digit_to_word.example;
import 'package:digit_to_word/digit_to_word.dart';
void main() {
// Prints the String 'one';
print(DigitToWord.translate(1));
// Prints the String 'one thousand two hundred thirty-four'
print(DigitToWord.translate(1234));
// Prints the String 'one thousand two hundred thirty four'
print(DigitToWord.translate(1234, withDashes: false));
}