isSHA256 method Null safety

bool isSHA256(
  1. String s
)

Checks if string is SHA256 hash.

Implementation

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