bool isValidDecimal(String input) { RegExp decimalRegExp = RegExp(r'^\d*\.?\d+$'); return decimalRegExp.hasMatch(input); }