checkContrast method

Future<void> checkContrast({
  1. bool? reportAAA,
})

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.

Implementation

Future<void> checkContrast({bool? reportAAA}) async {
  await _client.send('Audits.checkContrast', {
    if (reportAAA != null) 'reportAAA': reportAAA,
  });
}