isSquare property

bool get isSquare

Whether this rectangle is a square

Implementation

bool get isSquare => width == height;