ListToJSArray extension
Extension to convert List<String>
to JSArray<JSString>
This extension adds a method to List<String>
that converts the list of
Dart strings to a JSArray<JSString>
. Each string in the Dart list is
converted to a JS string using the toJS
method and then the list is
transformed into a JavaScript array.