ExactReplace constructor
ExactReplace(
- Map config, {
- 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));
}