digitsOnly property

WhitelistingTextInputFormatter digitsOnly
final

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

Implementation

static final WhitelistingTextInputFormatter digitsOnly
    = WhitelistingTextInputFormatter(RegExp(r'\d+'))