isPan property
bool
get
isPan
Returns true if the string is a valid Indian PAN card format.
Implementation
bool get isPan =>
!isNullOrEmpty &&
RegExp(r"^[A-Z]{5}[0-9]{4}[A-Z]$").hasMatch(this!);