decimalFormatter top-level property

TextInputFormatter decimalFormatter
final

Implementation

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