FlintWidget class abstract

Implementers

Constructors

FlintWidget({String? id, FlintScript? script, String? xData, String? xInit, String? xShow, Map<String, String>? xBind, Map<String, String>? xOn, String? xText, String? xHtml, String? xModel, String? xModelable, String? xFor, String? xTransition, String? xEffect, bool? xIgnore, String? xRef, bool? xCloak, String? xTeleport, bool? xIf, String? xId})

Properties

directives Map<String, String>
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script FlintScript?
final
xBind Map<String, String>
final
xCloak bool?
final
xData String?
final
xEffect String?
final
xFor String?
final
xHtml String?
final
xId String?
final
xIf bool?
final
xIgnore bool?
final
xInit String?
final
xModel String?
final
xModelable String?
final
xOn Map<String, String>
final
xRef String?
final
xShow String?
final
xTeleport String?
final
xText String?
final
xTransition String?
final

Methods

buildTemplate() FlintWidget
Build the widget template - MUST be implemented by subclasses
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
renderScriptAttributes() String
Render attached script to HTML attributes
toHtml() String
Render to HTML (for emails, web)
toJson() Map<String, dynamic>
Render to intermediate JSON (for APIs, mobile apps, etc.)
toString() String
A string representation of this object.
inherited
toText() String
Render to plain text (fallback, CLI, etc.)

Operators

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