Text class
- Inheritance
-
- Object
- FlintWidget
- Text
Constructors
-
Text(String data, {String? id, TextStyle? style, TextAlign align = TextAlign.left, int? maxLines, TextOverflow? overflow, 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
- align → TextAlign
-
final
- data → String
-
final
-
directives
→ Map<
String, String> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
finalinherited
- maxLines → int?
-
final
- overflow → TextOverflow?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- script → FlintScript?
-
finalinherited
- style → TextStyle?
-
final
-
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
-
buildTemplate(
) → FlintWidget -
Build the widget template - MUST be implemented by subclasses
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
-
toHtml(
) → String -
Render to HTML (for emails, web)
override
-
toJson(
) → Map< String, dynamic> -
Render to intermediate JSON (for APIs, mobile apps, etc.)
override
-
toString(
) → String -
A string representation of this object.
inherited
-
toText(
) → String -
Render to plain text (fallback, CLI, etc.)
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited