CensorElement constructor

CensorElement(
  1. String name, {
  2. bool caseSensitive = false,
})

Creates a new CensorElement with the given name and caseSensitive flag.

CensorElement element = CensorElement('key', caseSensitive: true);

Implementation

CensorElement(this.name, {this.caseSensitive = false});