merge method
Merges two configs into a single one.
Config coming from overrides
has a higher priority
and overrides conflicting entries.
Implementation
UnusedL10nConfig merge(UnusedL10nConfig overrides) => UnusedL10nConfig(
excludePatterns: {...excludePatterns, ...overrides.excludePatterns},
analyzerExcludePatterns: {
...analyzerExcludePatterns,
...overrides.analyzerExcludePatterns,
},
classPattern: overrides.classPattern ?? classPattern,
shouldPrintConfig: shouldPrintConfig || overrides.shouldPrintConfig,
);