startsWithNumber property

bool get startsWithNumber

Checks if the string starts with a number (digit).

Implementation

bool get startsWithNumber => hasMatch(r'^\d');