StateHookJSArray<T extends JSAny> class final

State hook for lists of JS objects.

Use this instead of useState when state is a list of JS objects. Avoids the jsify/dartify roundtrip issue where List<JSObject> becomes List<Object?> after conversion.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value List<T>
The current value of the state.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(List<T> newValue) → void
Updates value to newValue.
setWithUpdater(List<T> computeNewValue(List<T> oldValue)) → void
Updates value to the return value of computeNewValue.
toString() String
A string representation of this object.
inherited

Operators

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