isPassport static method

bool isPassport(
  1. String s
)

Checks if string is Passport No.

Implementation

static bool isPassport(String s) =>
    hasMatch(s, r'^(?!^0+$)[a-zA-Z0-9]{6,9}$');