# isEqual method

bool isEqual(

1. LocalDateTime other

)

Returns true if this instance represents the same date and time as `other`.

### Example:

    final dt1 = LocalDateTime.of(2024, 6, 27, 14, 30);
    final dt2 = LocalDateTime.of(2024, 6, 27, 14, 30);
    print(dt1.isEqual(dt2)); // true
    print(dt2.isEqual(dt1)); // true

## Implementation

    bool isEqual(LocalDateTime other) => compareTo(other).isEqualTo(0);