FlintStatefulTemplate<T> class abstract

A template that holds mutable state (like StatefulWidget).

Inheritance

Constructors

FlintStatefulTemplate({required T initialState, String? id, FlintScript? script})

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
finalinherited
initialState → T
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script FlintScript?
finalinherited
state ↔ T
getter/setter pair

Methods

buildTemplate() FlintWidget
Build the widget template - MUST be implemented by subclasses
inherited
createState() FlintState<FlintStatefulTemplate<T>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderScriptAttributes() String
Render attached script to HTML attributes
inherited
setState(T newState) → void
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