keyFromHexString method

Uint8List keyFromHexString()

Implementation

Uint8List keyFromHexString() {
  final cleaned = this.replaceAll("-", "");
  if (cleaned.length % 2 != 0) {
    throw FormatException('Must have an even length');
  }
  return cleaned.fromHexString();
}