DisclosureRenderBase class abstract
Shared structural base for themed disclosure renderers.
Every theme renders the same native <details>/<summary> scaffold with
identical class-naming conventions, the same open/showChevron/
showTreeLines conditionals and the same content/tree-line assembly. The
themes diverge only in the per-variant container/summary/content style maps
(ShadCN uses background-color + border-radius; the neon/neubrutalism
themes use background + clip-path) and in the chevron span. Those
divergent nodes are exposed as abstract members the subclass supplies.
This base lives in core and depends only on core props; it must never depend on a theme package.
- Inheritance
-
- Object
- Component
- StatelessComponent
- DisclosureRenderBase
Constructors
- DisclosureRenderBase(DisclosureProps props, {Key? key})
-
const
Properties
- classPrefix → String
-
Theme class prefix (e.g.
'arcane','neon','neubrutalism').no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one component replaces another component in the tree.
finalinherited
- props → DisclosureProps
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context) → Component -
Describes the part of the user interface represented by this component.
override
-
buildChevron(
) → Component - Builds the chevron span (only rendered when DisclosureProps.showChevron).
-
containerStyles(
DisclosureVariant variant) → Map< String, String> -
Inline styles for the root
<details>element for the given variant. -
contentVariant(
DisclosureVariant variant) → (String, String) -
Per-variant content
paddingandborder-topvalues. -
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. Themes translate an ArcaneDecoration into their own CSS; unimplemented fields 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
-
summaryStyles(
DisclosureVariant variant) → Map< String, String> -
Inline styles for the
<summary>element for the given variant. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited