operator == method

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

Equality operator.

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;
  if (other is! BlockHeader) return false;

  return version == other.version &&
         prevBlock == other.prevBlock &&
         merkleRoot == other.merkleRoot &&
         timestamp.millisecondsSinceEpoch == other.timestamp.millisecondsSinceEpoch &&
         bits == other.bits &&
         nonce == other.nonce;
}