isDigit static method

bool isDigit(
  1. int codepoint
)

Tests if the codepoint is a digit (0-9).

Parameters:

  • codepoint (int, required): The codepoint to test.

Returns: true if the codepoint is a digit.

Implementation

static bool isDigit(int codepoint) =>
    codepoint >= _startDigit && codepoint <= _endDigit;