getInputFormatters method
Implementation
List<TextInputFormatter> getInputFormatters(BaseValueType? type, int? decimals) {
return switch (type) {
BaseValueType.integer => [IntegerInputFormatter()],
BaseValueType.floating || BaseValueType.numeric => [DecimalInputFormatter(decimals: decimals)],
_ => [],
};
}