isNumeric static method

bool isNumeric(
  1. String value
)

Implementation

static bool isNumeric(String value) {
  // Regular expression pattern for numeric validation
  const pattern = r'^\d+$';
  final regex = RegExp(pattern);
  return regex.hasMatch(value);
}