replace method

  1. @override
DartBlake2b replace({
  1. int? hashLength,
})
override

Enables you to replace hashLengthInBytes.

Subclasses should replace this with their own implementation.

Implementation

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