KbdRenderBase class abstract

Shared structural base for themed keyboard-shortcut (kbd) renderers.

Factors the identical build logic shared by every theme's kbd renderer (the single-key vs key-combo branch, the combo wrapper span, the per-key <kbd> element, and the identical separator span) into one place. A concrete theme renderer only supplies the value-producing members below: the optional CSS class on each <kbd> element, the gap used between combo keys, and the resolved per-<kbd> style map (which already folds in the theme's size and style-variant values).

This base lives in core and depends only on core props; it must never depend on a theme package.

Inheritance

Constructors

KbdRenderBase(KbdProps props, {Key? key})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
kbdClasses String?
CSS class applied to each <kbd> element, or null for no class.
no setter
key Key?
Controls how one component replaces another component in the tree.
finalinherited
keysWrapperGap String
gap value applied to the combo wrapper span between keys.
no setter
props KbdProps
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
styleMap Map<String, String>
Resolved inline styles for each <kbd> element (size + style variant).
no setter

Methods

build(BuildContext context) Component
Describes the part of the user interface represented by this component.
override
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
decorationStyles(ArcaneDecoration? decoration) Map<String, String>
Per-instance decoration overrides. Default: none. A theme overrides this to translate an ArcaneDecoration (elevation intent, theme-specific fields) into its own CSS. Fields a theme does not implement are ignored.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited