isDifferentFrom method
Determine if two models are different.
This is the inverse of isSameAs.
Example:
if (user1.isDifferentFrom(user2)) {
print('Different users');
}
Implementation
bool isDifferentFrom(Model? other) => !isSameAs(other);
Determine if two models are different.
This is the inverse of isSameAs.
Example:
if (user1.isDifferentFrom(user2)) {
print('Different users');
}
bool isDifferentFrom(Model? other) => !isSameAs(other);