digitRegStr top-level property

String digitRegStr
getter/setter pair

A regular expression pattern that matches strings containing only digits.

This pattern ensures the string contains one or more digits (0-9) and nothing else.

Implementation

String digitRegStr = r'^[0-9]+$';