regexStartsWithPlusAndThenOnlyNumbers property

RegExp regexStartsWithPlusAndThenOnlyNumbers
getter/setter pair

Regular expression pattern for matching strings that start with a plus sign followed by only digits.

Useful for validating international phone number formats.

Implementation

static RegExp regexStartsWithPlusAndThenOnlyNumbers = RegExp(r'^\+[0-9]+$');