ExactReplace constructor

ExactReplace(
  1. Map config, {
  2. PackedDataCache? cache,
})

Constructs a new instance

Implementation

ExactReplace(super.config, {super.cache})
    : replacements = IList([
        for (List replacement in config['replacements'] ?? [])
          (match: replacement[0], replace: replacement[1])
      ]),
      recursive = config['recursive'] ?? false {
  List<String> keys = [for(var e in config['packedReplacements'] ?? []) e.toString()];
  replacements = replacements.addAll(_loadPackedReplacements(keys, cache));
}