CyberKeyGeometry class final
The plate geometry of one key size.
Constructors
- CyberKeyGeometry.build(Size size, {required double chamfer, required double edgeWidth, required double plunge})
-
Builds the geometry of a key box of
size. - CyberKeyGeometry.cached(Size size, {required double chamfer, required double edgeWidth, required double plunge})
-
The cached geometry for a key box of
size(built on a miss).factory - CyberKeyGeometry.transient(Size size, {required double chamfer, required double edgeWidth, required double plunge})
-
The geometry of an in-between face of a theme transition (values
already quantised by the caller), from a second LRU so a transition
never evicts the steady-state entries of
cached.factory
Properties
- bloomPath → Path
-
The top and bottom bloom bands.
final
- bloomShader ↔ Shader
-
White → clear → white α ramp over the plate's height (tinted by a
colour filter at paint time, so it never embeds a role colour).
latefinal
- cut ↔ double
-
The chamfer leg, dp.
latefinal
- depth ↔ double
-
The press plunge, dp.
latefinal
- edge ↔ double
-
The edge line width, dp.
latefinal
- edgePath → Path
-
The edge line's centre path (stroke at edge).
final
- face ↔ Rect
-
The plate at rest.
latefinal
- facePath → Path
-
The plate outline (fill).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inner ↔ Rect
-
The plate inside its edge line (the hold bar's box).
latefinal
- innerPath → Path
-
The plate inside its edge line (the hold bar's clip).
final
- inset ↔ double
-
The face inset inside the key box, dp.
latefinal
- insetEdgePath → Path
-
The edge line inset 1.5 dp more (Hazard plates: a black rim between
the neon line and the yellow body).
final
- insetTickPath → Path
-
The ticks moved 1.5 dp further in, clear of insetEdgePath.
final
- liteRing → Path
-
The lite-tier glow ring (stroke at 2 dp), centred 1.5 dp outside
the plate.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tickPath → Path
-
The two HUD corner ticks (stroke at 1 dp).
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.
inherited
Static Properties
- builds ↔ int
-
Geometries built through
cached(tests).getter/setter pair - transientBuilds ↔ int
-
Geometries built through
transient(tests).getter/setter pair
Static Methods
-
clearCache(
) → void - Forgets every cached geometry (tests).