tryParse static method

HashPrefix? tryParse(
  1. String hex
)

Implementation

static HashPrefix? tryParse(String hex) {
  try {
    return HashPrefix.parse(hex);
  } catch (_) {
    return null;
  }
}