KeyFaceSpec class final

What a KeyFaceRenderer draws one key with.

Annotations

Constructors

KeyFaceSpec({required KeyRole role, required KeyStyle style, required double cornerFraction, required double pressedOverlayOpacity, required double hoverOverlayOpacity, bool reduceMotion = false, int artSeed = 0})
const

Properties

artSeed → int
A stable number per key (0 when unknown, e.g. in tests): renderers that draw hand-made artwork (Paper & ink's sketched outlines) vary it per key so same-sized keys do not share one drawing.
final
cornerFraction → double
Corner radius as a fraction of the shorter side.
final
hashCode → int
The hash code for this object.
no setteroverride
hoverOverlayOpacity → double
Opacity of the label-coloured layer when hovered.
final
pressedOverlayOpacity → double
Opacity of the label-coloured layer when fully pressed.
final
reduceMotion → bool
Discrete changes instead of movement (the long-press fill fades in place instead of growing).
final
role → KeyRole
The key's role.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → KeyStyle
Fill, label and outline colours.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override