money static method

List<TextInputFormatter> money({
  1. int integer = 6,
  2. int decimal = 2,
})

Implementation

static List<TextInputFormatter> money({int integer = 6, int decimal = 2}) =>
    [_MoneyTextInputFormatter(integer, decimal), allow(RegExp(r'[0-9.]'))];