digitsOnly property Null safety

TextInputFormatter digitsOnly
final

A TextInputFormatter that takes in digits [0-9] only.

Implementation

static final TextInputFormatter digitsOnly = FilteringTextInputFormatter.allow(RegExp(r'[0-9]'));