isValidNationalNumber method

bool isValidNationalNumber(
  1. String nationalNumber
)

Validates given nationalNumber using defined length rule.

Implementation

bool isValidNationalNumber(String nationalNumber) =>
    length.test(nationalNumber.length);