Soundex.fromMapping constructor

Soundex.fromMapping(
  1. Map<int, int> soundexMapping, {
  2. bool prefixesEnabled = true,
  3. bool hyphenatedPartsEnabled = true,
  4. bool ignoreHW = true,
  5. bool trackIgnored = true,
  6. int maxLength = defaultMaxLength,
  7. int paddingChar = $0,
  8. bool paddingEnabled = true,
})

Creates a custom Soundex instance. This constructor can be used to provide custom mappings for non-Western character sets, etc.

Implementation

factory Soundex.fromMapping(final Map<int, int> soundexMapping,
        {bool prefixesEnabled = true,
        bool hyphenatedPartsEnabled = true,
        bool ignoreHW = true,
        bool trackIgnored = true,
        int maxLength = defaultMaxLength,
        int paddingChar = $0,
        bool paddingEnabled = true}) =>
    Soundex._internal(
        Map.unmodifiable(soundexMapping),
        prefixesEnabled,
        hyphenatedPartsEnabled,
        ignoreHW,
        trackIgnored,
        maxLength,
        paddingChar,
        paddingEnabled);