area property

num get area

The area of this dimension.

Implementation

num get area => isZeroDimension ? 0 : width * height;