hashUtf8String static method

Uint8List hashUtf8String(
  1. String string
)

Implementation

static Uint8List hashUtf8String(String string) {
  Uint8List bytes = Uint8List(string.length);
  for (int i = 0; i < string.length; i++) {
    bytes[i] = string.codeUnitAt(i);
  }
  return hash(bytes, 0, bytes.length);
}