Fix flickering issues due to reconnecting loop
This commit is contained in:
@@ -25,6 +25,36 @@ class Ticket {
|
||||
final DateTime? promotedAt;
|
||||
final DateTime? closedAt;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is Ticket &&
|
||||
runtimeType == other.runtimeType &&
|
||||
id == other.id &&
|
||||
subject == other.subject &&
|
||||
description == other.description &&
|
||||
officeId == other.officeId &&
|
||||
status == other.status &&
|
||||
createdAt == other.createdAt &&
|
||||
creatorId == other.creatorId &&
|
||||
respondedAt == other.respondedAt &&
|
||||
promotedAt == other.promotedAt &&
|
||||
closedAt == other.closedAt;
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
id,
|
||||
subject,
|
||||
description,
|
||||
officeId,
|
||||
status,
|
||||
createdAt,
|
||||
creatorId,
|
||||
respondedAt,
|
||||
promotedAt,
|
||||
closedAt,
|
||||
);
|
||||
|
||||
factory Ticket.fromMap(Map<String, dynamic> map) {
|
||||
return Ticket(
|
||||
id: map['id'] as String,
|
||||
|
||||
Reference in New Issue
Block a user