isNumericOnly static method

bool isNumericOnly(
  1. String text
)

Implementation

static bool isNumericOnly(String text) => RegExp(r'^\d+$').hasMatch(text);