CardRenderBase class abstract
Shared structural base for themed card renderers.
Factors the identical build logic shared by every theme's card renderer
(content resolution, the style merge, the data-variant attribute, and the
native anchor/button/div branch with its element reset styles) into one
place. A concrete theme renderer only supplies the root CSS class and the
base/variant style maps.
This base lives in core and depends only on core props; it must never depend on a theme package.
- Inheritance
-
- Object
- Component
- StatelessComponent
- CardRenderBase
Constructors
- CardRenderBase(CardProps props, {Key? key})
-
const
Properties
- cssClass → String
-
CSS class applied to the root element (e.g.
'arcane-card'). Interactive cards also receiveclickable, followed by CardProps.classes.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 → CardProps
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
baseStyles(
CardProps props) → Map< String, String> -
Base layout styles (radius, padding, sizing). Receives
propsbecause several keys depend on optional fields. -
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
-
variantStyles(
CardProps props) → Map< String, String> - Variant-specific visual styles (background, border, shadow).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited