operator == method
Compares this LocalDateTime to another for equality.
Example:
final dt1 = LocalDateTime.of(2024, 6, 27, 14, 30);
final dt2 = LocalDateTime.of(2024, 6, 27, 14, 30);
print(dt1 == dt2); // true
Implementation
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
return other is LocalDateTime && date.isEqual(other.date) && time.isEqual(other.time);
}