isSHA1 method Null safety

bool isSHA1(
  1. String s
)

Checks if string is SHA1 hash.

Implementation

static bool isSHA1(String s) =>
    hasMatch(s, r'(([A-Fa-f0-9]{2}\:){19}[A-Fa-f0-9]{2}|[A-Fa-f0-9]{40})');