hasSameIdentity method

bool hasSameIdentity(
  1. Account otherAccount
)

Determines whether this account has the same identity as otherAccount.

Implementation

bool hasSameIdentity(Account otherAccount) =>
    identity == otherAccount.identity;