isPassport property

bool get isPassport

Determines whether a given string represents a valid passport number.

Implementation

bool get isPassport => _hasMatch(this, r'^(?!^0+$)[a-zA-Z0-9]{6,9}$');