decimalFormatter property

TextInputFormatter decimalFormatter
final

小数

Implementation

static final TextInputFormatter decimalFormatter = FilteringTextInputFormatter.allow(RegExp(r'^(\d+)?\.?\d{0,}'));