isSHA1 property

bool get isSHA1

Determines whether a given string represents a valid SHA1 hash.

Implementation

bool get isSHA1 => _hasMatch(
      this,
      r'(([A-Fa-f0-9]{2}\:){19}[A-Fa-f0-9]{2}|[A-Fa-f0-9]{40})',
    );