getProperties method
Future<GetPropertiesResult>
getProperties(
- RemoteObjectId objectId, {
- bool? ownProperties,
- bool? accessorPropertiesOnly,
- bool? generatePreview,
- bool? nonIndexedPropertiesOnly,
Returns properties of a given object. Object group of the result is inherited from the target
object.
objectId
Identifier of the object to return properties for.
ownProperties
If true, returns properties belonging only to the element itself, not to its prototype
chain.
accessorPropertiesOnly
If true, returns accessor properties (with getter/setter) only; internal properties are not
returned either.
generatePreview
Whether preview should be generated for the results.
nonIndexedPropertiesOnly
If true, returns non-indexed properties only.
Implementation
Future<GetPropertiesResult> getProperties(RemoteObjectId objectId,
{bool? ownProperties,
bool? accessorPropertiesOnly,
bool? generatePreview,
bool? nonIndexedPropertiesOnly}) async {
var result = await _client.send('Runtime.getProperties', {
'objectId': objectId,
if (ownProperties != null) 'ownProperties': ownProperties,
if (accessorPropertiesOnly != null)
'accessorPropertiesOnly': accessorPropertiesOnly,
if (generatePreview != null) 'generatePreview': generatePreview,
if (nonIndexedPropertiesOnly != null)
'nonIndexedPropertiesOnly': nonIndexedPropertiesOnly,
});
return GetPropertiesResult.fromJson(result);
}