ToastRenderBase class abstract

Shared structural base for the neon/neubrutalism toast renderers.

These two themes render an identical toast tree — the root flex row with its variant/exiting classes and hover events, the icon slot, the title/message/description content block, the action button and the dismiss button, plus the glyph fallback icon. They diverge only in the class prefix, the loading accent, the root attributes, the per-theme root/action/dismiss style maps. The loading state is routed through the active theme's canonical loader renderer.

The ShadCN toast is structurally divergent (icon components, a progress bar, role/aria-live attributes and a close-button gated on onDismiss) and is left standalone.

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

Inheritance

Constructors

ToastRenderBase(ToastProps props, {Key? key})
const

Properties

classPrefix String
Theme class prefix (e.g. 'neon', 'neubrutalism').
no setter
dismissClasses String
Classes for 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
key Key?
Controls how one component replaces another component in the tree.
finalinherited
loadingAccent String
Accent color for the loading variant.
no setter
props ToastProps
final
rootAttributes Map<String, String>
Extra attributes for the root element (neon none; neubrutalism data-variant).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

actionStyles() Map<String, String>
Inline styles for the action button.
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
rootBaseStyles(String accentVar) Map<String, String>
Theme-specific root styles (before the shared exiting overrides). Receives the resolved accentVar.
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