FlintMarketingTemplate class abstract

Base class for marketing templates

Inheritance

Constructors

FlintMarketingTemplate({required String recipientName, required String recipientEmail, FlintTheme theme = const FlintTheme()})

Properties

directives Map<String, String>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
Optional head for template: meta, title, links, etc.
no setterinherited
id String
finalinherited
recipientEmail String
finalinherited
recipientName String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script FlintScript?
finalinherited
theme → FlintTheme
finalinherited
xBind Map<String, String>
finalinherited
xCloak bool?
finalinherited
xData String?
finalinherited
xEffect String?
finalinherited
xFor String?
finalinherited
xHtml String?
finalinherited
xId String?
finalinherited
xIf bool?
finalinherited
xIgnore bool?
finalinherited
xInit String?
finalinherited
xModel String?
finalinherited
xModelable String?
finalinherited
xOn Map<String, String>
finalinherited
xRef String?
finalinherited
xShow String?
finalinherited
xTeleport String?
finalinherited
xText String?
finalinherited
xTransition String?
finalinherited

Methods

buildContent() FlintWidget
Build the main content - MUST be implemented by subclasses
inherited
buildTemplate() FlintWidget
Marketing-specific styling with more visual elements
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderAttributes({String? style}) String
---------------- Helper ---------------- Converts ID + directives + optional style to HTML attributes
inherited
renderScriptAttributes() String
Render attached script to HTML attributes
inherited
scaffoldHtml({String lang = 'en'}) String
Build full HTML scaffold
inherited
scripts() List<String>
Additional
inherited
styles() List<String>
Additional
inherited
toHtml() String
Render to HTML (for emails, web)
inherited
toJson() Map<String, dynamic>
Render to intermediate JSON (for APIs, mobile apps, etc.)
inherited
toString() String
A string representation of this object.
inherited
toText() String
Render to plain text (fallback, CLI, etc.)
inherited

Operators

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