RedactionConfig constructor

const RedactionConfig({
  1. bool enabled = true,
  2. bool blockMode = false,
  3. Map<RedactionLayer, bool> layerToggles = const {},
  4. List<RegExp> allowlistRegexes = const [],
  5. double minEntropy = 4.5,
  6. int minLength = 32,
  7. Set<String> toolAllow = const {},
  8. Set<String> toolDeny = const {},
})

Creates a configuration; see each field for its default.

Implementation

const RedactionConfig({
  this.enabled = true,
  this.blockMode = false,
  this.layerToggles = const {},
  this.allowlistRegexes = const [],
  this.minEntropy = 4.5,
  this.minLength = 32,
  this.toolAllow = const {},
  this.toolDeny = const {},
});