hashType property
String
hashType
Implementation
String get hashType {
return hashTypeMap[hashTypeIndex];
}
Implementation
set hashType(String hashType) {
for (int i = 0; i < hashTypeMap.length; i++) {
if (hashType != "" && hashType == hashTypeMap[i]) {
hashTypeIndex = i;
return;
}
}
throw ArgumentError(
"Hash type $hashType is not supported, please select one from [, SHA-256]");
}