getWorldConfigurations method

Future<List<WorldProperties>> getWorldConfigurations()

Retrieves all registered world configurations. |Returns|: Promise that resolves with the registered world configurations.

Implementation

Future<List<WorldProperties>> getWorldConfigurations() async {
  var $res = await $js.chrome.userScripts.getWorldConfigurations().toDart;
  return $res.toDart
      .cast<$js.WorldProperties>()
      .map((e) => WorldProperties.fromJS(e))
      .toList();
}