Profanity class

Creates an Profanity.

Constructors

Profanity({List<String> languages = const ['en']})

Properties

hashCode int
The hash code for this object.
no setterinherited
languages List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

censor(String characters, {CensorBleepType bleepType = CensorBleepType.asterisk, CensorType censorType = CensorType.full}) String
Censors the profanity from a string sequence.
containsProfanity(String word) bool
Checks if string contains a profanity in word.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
profanityList(String languageCode) List<String>
Sets the profanity list by the language code.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited