isSameAs method Null safety

bool isSameAs(
  1. ChatMessage other
)

Implementation

bool isSameAs(ChatMessage other) =>
    fromParticipantId == other.fromParticipantId && date == other.date && message == other.message;