SensitiveFieldMatcher constructor

SensitiveFieldMatcher({
  1. Set<String>? extraKeys,
})

Creates a matcher with optional extraKeys to extend the defaults.

Implementation

SensitiveFieldMatcher({Set<String>? extraKeys})
    : keys = LinkedHashSet<String>(
        equals: (a, b) => _normalize(a) == _normalize(b),
        hashCode: (key) => _normalize(key).hashCode,
      )
        ..addAll(_defaultSensitiveKeys)
        ..addAll(extraKeys ?? const {});