replace method

Blake2b replace({
  1. int? hashLength,
})

Enables you to replace hashLengthInBytes.

Subclasses should replace this with their own implementation.

Implementation

Blake2b replace({int? hashLength}) {
  hashLength ??= hashLengthInBytes;
  if (hashLength == hashLengthInBytes) {
    return this;
  }
  return Blake2b(
    hashLengthInBytes: hashLength,
  );
}