isDouble method
Implementation
bool isDouble(FieldResults result) {
if (result.type == FieldType.string) {
for (final data in result.values) {
String value = data.value?.trim() ?? "";
// Use a RegExp to check if the string contains only digits and possibly decimal points
if ((!RegExp(r'^\d*\.?\d+$').hasMatch(value)) == false) return false;
}
}
return true;
}