operator == method

  1. @override
bool operator == (Object other)
override

Returns whether this is equal to another digest.

This should be used instead of manual comparisons to avoid leaking information via timing.

Implementation

@override
bool operator ==(Object other) =>
    other is Digest && const ListEquality().equals(bytes, other.bytes);