NexusInAppDesign class
The designed look of an in-app message — built in the Nexus console's
designer and delivered as content.design.
A vertical stack of blocks inside a styled frame. The backend validates and clamps every value before it is stored, so parsing here is lenient: anything missing falls back to the console's defaults, and an unknown block type is skipped rather than failing the whole message.
Constructors
-
NexusInAppDesign({required List<
NexusInAppBlock> blocks, required NexusInAppFrame frame, required Color overlayColor, required bool dismissOnBackdropTap, required NexusInAppClose close, required String animation, required int autoDismissSeconds, required String direction}) -
const
Properties
- animation → String
-
fade|slide|zoom|none.final - autoDismissSeconds → int
-
0 = stays until dismissed.
final
-
blocks
→ List<
NexusInAppBlock> -
final
- close → NexusInAppClose
-
final
- direction → String
-
auto|ltr|rtl.final - dismissOnBackdropTap → bool
-
final
- frame → NexusInAppFrame
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- overlayColor → Color
-
Backdrop colour, opacity included (modal / sheet / center only).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveDirection(
TextDirection ambient) → TextDirection -
autofollows the copy: right-to-left when the first strong character is Arabic / Hebrew script — the same rule the console preview uses. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
tryParse(
Object? raw) → NexusInAppDesign?