jsToMap function
A workaround to converting an object from JS to a Dart Map.
Implementation
Map jsToMap(jsObject) {
return Map.fromIterable(
getKeysOfObject(jsObject),
value: (key) => getProperty(jsObject, key),
);
}
A workaround to converting an object from JS to a Dart Map.
Map jsToMap(jsObject) {
return Map.fromIterable(
getKeysOfObject(jsObject),
value: (key) => getProperty(jsObject, key),
);
}