MaskingStrategy constructor

const MaskingStrategy({
  1. String maskChar = '*',
  2. int keepStart = 1,
  3. int keepEnd = 1,
  4. int minMasked = 2,
})

Creates a masking strategy describing how many characters to keep visible.

Implementation

const MaskingStrategy({
  this.maskChar = '*',
  this.keepStart = 1,
  this.keepEnd = 1,
  this.minMasked = 2,
})  : assert(keepStart >= 0, 'keepStart must be non-negative'),
      assert(keepEnd >= 0, 'keepEnd must be non-negative'),
      assert(minMasked >= 0, 'minMasked must be non-negative');