jsArrayToList function

List? jsArrayToList(
  1. JsArray? a
)

Converts a JsArray a to a List. Also converts values using jsToDart.

Implementation

List? jsArrayToList(JsArray? a) {
  if (a == null) return null;
  return a.map(jsToDart).toList();
}