digitsOnly property Null safety
final
A TextInputFormatter that takes in digits [0-9]
only.
Implementation
static final TextInputFormatter digitsOnly = FilteringTextInputFormatter.allow(RegExp(r'[0-9]'));
A TextInputFormatter that takes in digits [0-9]
only.
static final TextInputFormatter digitsOnly = FilteringTextInputFormatter.allow(RegExp(r'[0-9]'));