PrefixInverseGenerator constructor

PrefixInverseGenerator({
  1. String? generic = defaultGeneric,
  2. Map<String, String> swap = defaultSwap,
})

Creates a new generator. swap is a mapping of prefixes, such that any arguments with a prefix as a key in the mapping will have that swapped out with the corresponding value. Any other arguments will have generic prepended as a prefix if it is not null, otherwise no inverse will be generated.

Implementation

PrefixInverseGenerator(
    {this.generic = defaultGeneric, this.swap = defaultSwap});