area property

num area

The area of this dimension.

Implementation

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