AuditsApi class

Audits domain allows investigation of page violations and possible improvements.

Constructors

AuditsApi(Client _client)

Properties

hashCode int
The hash code for this object.
no setterinherited
onIssueAdded Stream<InspectorIssue>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkContrast({bool? reportAAA}) Future<void>
Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event. reportAAA Whether to report WCAG AAA level issues. Default is false.
checkFormsIssues() Future<List<GenericIssueDetails>>
Runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event.
disable() Future<void>
Disables issues domain, prevents further issues from being reported to the client.
enable() Future<void>
Enables issues domain, sends the issues collected so far to the client by means of the issueAdded event.
getEncodedResponse(RequestId requestId, String encoding, {num? quality, bool? sizeOnly}) Future<GetEncodedResponseResult>
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images. requestId Identifier of the network request to get content for. encoding The encoding to use. quality The quality of the encoding (0-1). (defaults to 1) sizeOnly Whether to only return the size information (defaults to false).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited