startsWithNumber property

bool startsWithNumber

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

Implementation

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