SkeletonRenderBase class abstract
Shared structural base for themed skeleton renderers.
Factors the identical build logic shared by every theme's skeleton renderer
(the per-shape geometry resolution, the width/height and conditional
border-radius/clip-path style keys, the root class with its
animate suffix, and the empty child list) into one place. A concrete
theme renderer only supplies the value-producing members below: the root
CSS class, the per-shape default geometry, and the theme-specific surface
styles (background, animation, borders) appended after the geometry keys.
This base lives in core and depends only on core props; it must never depend on a theme package.
- Inheritance
-
- Object
- Component
- StatelessComponent
- SkeletonRenderBase
Constructors
- SkeletonRenderBase(SkeletonProps props, {Key? key})
-
const
Properties
- cssClass → String
-
CSS class applied to the root element (e.g.
'arcane-skeleton'). build appends' 'plus theanimatemarker based onprops.animate.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 → SkeletonProps
-
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
-
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.
-
defaultGeometry(
SkeletonShape shape) → (String, String, String?, String?) -
Per-shape default geometry as
(width, height, clipPath, borderRadius).clipPathandborderRadiusare null when the theme/shape does not use them; the resolvedborder-radiusalways wins overclip-pathwhen both are available. -
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
-
surfaceStyles(
SkeletonProps props) → Map< String, String> - Theme-specific surface styles appended after the shared geometry keys (background, animation, borders, etc.). Key insertion order is preserved in the emitted style map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited