CustomMinimumContrastGuideline constructor Null safety

const CustomMinimumContrastGuideline(
  1. {required Finder finder,
  2. double minimumRatio = 4.5,
  3. double tolerance = 0.01,
  4. String description = 'Contrast should follow custom guidelines'}
)

Creates a custom guideline which verifies that all elements specified by finder meet minimum contrast levels.

An optional description string can be given using the description parameter.

Implementation

const CustomMinimumContrastGuideline({
  required this.finder,
  this.minimumRatio = 4.5,
  this.tolerance = 0.01,
  String description = 'Contrast should follow custom guidelines',
}) : _description = description;