isdigit function

bool isdigit(
  1. String ch
)

Implementation

bool isdigit(String ch) => RegExp(r'^[0-9]$').hasMatch(ch[0]);