JSHelpers class

Helper utilities for JSArray operations in WASM-compatible way

Constructors

JSHelpers()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getJSArrayItem(JSArray<JSAny?> array, int index) JSAny?
Get an item from JSArray<JSAny?> at a specific index
getJSArrayLength(JSArray<JSAny?> array) int
Get the length of a JSArray<JSAny?>
jsArrayToList<T>(JSArray<JSAny?> jsArray) List<T>
Convert JSArray<JSAny?> to List
jsItemsToJSArray(List list) JSArray<JSAny?>
Convert List of items to JSArray<JSAny?>
stringListToJSArray(List<String> list) JSArray<JSAny?>
Convert List