AlertRenderBase class abstract

Shared structural base for themed alert renderers.

Factors the identical build logic shared by every theme's alert renderer (the root container, the optional icon block, the content block with its title/description/child/action children, and the optional dismiss button) into one place. A concrete theme renderer only supplies the value-producing members below: the per-element CSS classes, the style maps, the default icon, the dismiss glyph and the action spacing.

The overall element tree is byte-identical across all three themes; only the CSS class strings and style values differ, so this base uses value-map abstractions (like the button and card bases) rather than structural sub-builders.

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

Inheritance

Constructors

AlertRenderBase(AlertProps props, {Key? key})
const

Properties

actionMarginTop String
margin-top value applied to the action wrapper.
no setter
containerStyles Map<String, String>
Style-variant container styles (background, border, shadow) for the root.
no setter
contentClass String
CSS class applied to the content wrapper.
no setter
defaultIcon Component
The default icon used when AlertProps.icon is null.
no setter
descriptionClass String
CSS class applied to the description element.
no setter
descriptionStyles Map<String, String>
Inline styles for the description element.
no setter
dismissChild Component
The glyph/icon rendered inside the dismiss button.
no setter
dismissClass String
CSS class applied to the dismiss button.
no setter
dismissStyles Map<String, String>
Inline styles for the dismiss button.
no setter
hashCode int
The hash code for this object.
no setterinherited
iconClass String
CSS class applied to the icon wrapper.
no setter
iconStyles Map<String, String>
Inline styles for the icon wrapper.
no setter
key Key?
Controls how one component replaces another component in the tree.
finalinherited
props AlertProps
final
rootAttributes Map<String, String>
Attributes applied to the root element (role plus any data markers).
no setter
rootClass String
CSS class applied to the root element (e.g. 'arcane-alert').
no setter
rootLayoutStyles Map<String, String>
Root styles that follow the shared layout block and precede the style-variant container styles (spacing plus any theme-specific layout such as clipping).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titleClass String
CSS class applied to the title element.
no setter
titleStyles Map<String, String>
Inline styles for the title element.
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. 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
toString() String
A string representation of this object.
inherited

Operators

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