isLetterOrDigit property Null safety

bool isLetterOrDigit

true if this is non-null, non-empty and consists of only letters or digits: 0-9a-zA-Z

Implementation

bool get isLetterOrDigit =>
    this != null && _letterOrDigitPattern.hasMatch(this!);