KeyShapeSpec class final
Key outline (spec §5.1 KeyShape).
- Annotations
Constructors
- KeyShapeSpec({required KeyShapeKind kind, int cornerPermille = 300, M3eShape? m3eShape, KeyShapeKind? morphTo, int? morphCornerPermille, KeyShapeKind? operatorKind, M3eShape? operatorM3eShape})
-
const
- KeyShapeSpec.fromJson(Object? json)
-
factory
Properties
- cornerFraction → double
-
Corner radius as a fraction (0–0.5) of the short side.
no setter
- cornerPermille → int
-
Resting corner radius as a fraction of the key's short side × 1000
(0 = square, 500 = fully round).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- kind → KeyShapeKind
-
Resting shape of digit and function keys.
final
- m3eShape → M3eShape?
-
Material shape-library id when kind is KeyShapeKind.m3eMorph.
final
- morphCornerPermille → int?
-
Pressed corner radius (fraction of short side × 1000), if it changes.
final
- morphTo → KeyShapeKind?
-
Shape the key morphs to when pressed (null = no shape morph).
final
- operatorKind → KeyShapeKind?
-
Different resting shape for operator /
=keys (a non-colour cue); null = same as kind.final - operatorM3eShape → M3eShape?
-
Material shape-library id for operator keys when operatorKind is
KeyShapeKind.m3eMorph. Bauhaus reuses it for its
=figure (disc, half-disc, fan or triangle; bauhaus.dart).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{KeyShapeKind? kind, int? cornerPermille, M3eShape? m3eShape, KeyShapeKind? morphTo, int? morphCornerPermille, KeyShapeKind? operatorKind, M3eShape? operatorM3eShape}) → KeyShapeSpec -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override