Skip to content

Instantly share code, notes, and snippets.

@tolotrasam
tolotrasam / CustomTextInputFormatter.dart
Last active March 1, 2021 15:18
Simple Thousand Separator
class CustomTextInputFormatter extends TextInputFormatter {
CustomTextInputFormatter({
this.separator,
this.decimalSeparator,
});
static List<String> nums = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
String get logId => runtimeType.toString();
final String separator;