operator == method

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

override the '==' operator

Implementation

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

  return other is ChatMessage &&
      other.text == text &&
      other.imageUrl == imageUrl &&
      other.imagePath == imagePath &&
      other.audioUrl == audioUrl &&
      other.audioPath == audioPath &&
      other.isSender == isSender &&
      other.createdAt == createdAt;
}