Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given an array of integers heights representing the histogram's bar height where the width of each bar is 1, return the area of the largest rectangle in the histogram.
 
Please complete the following python code precisely:
```python
class Solution:
    def largestRectangleArea(self, heights: List[int]) -> int:
```