isRectLike property
bool
get
isRectLike
Whether this outline is a (rounded) rectangle family shape whose corners scale exactly with the short side (circle, pill, squircle…).
Implementation
bool get isRectLike => switch (kind) {
KeyShapeKind.circle ||
KeyShapeKind.pill ||
KeyShapeKind.roundedRect ||
KeyShapeKind.squircle ||
KeyShapeKind.keycap ||
KeyShapeKind.stepped => true,
KeyShapeKind.m3eMorph => switch (m3eShape) {
null || M3eShape.circle || M3eShape.pill || M3eShape.square => true,
_ => false,
},
KeyShapeKind.hexagon || KeyShapeKind.cut => false,
};