both property

bool get both

Implementation

bool get both => this == horizontal || this == vertical;