globalLexicalScopeNames method

Future<List<String>> globalLexicalScopeNames({
  1. ExecutionContextId? executionContextId,
})

Returns all let, const and class variables from global scope. executionContextId Specifies in which execution context to lookup global scope variables.

Implementation

Future<List<String>> globalLexicalScopeNames(
    {ExecutionContextId? executionContextId}) async {
  var result = await _client.send('Runtime.globalLexicalScopeNames', {
    if (executionContextId != null) 'executionContextId': executionContextId,
  });
  return (result['names'] as List).map((e) => e as String).toList();
}