FlintState class

Reactive state management for Flint widgets

Constructors

FlintState([Map<String, dynamic>? initialData])

Properties

data Map<String, dynamic>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addComputedProperty(String name, dynamic computeFn()) → void
Add computed properties for Alpine.js
addListener(dynamic listener(Map<String, dynamic>)) → void
get(String key) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(dynamic listener(Map<String, dynamic>)) → void
set(String key, dynamic value) → void
toAlpineData() Map<String, dynamic>
Convert state to Alpine.js compatible format
toJsObject() String
toString() String
A string representation of this object.
inherited
update(Map<String, dynamic> newData) → void

Operators

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