protectedViolations function

List<String> protectedViolations({
  1. required Map<String, String> before,
  2. required Map<String, String> after,
})

Implementation

List<String> protectedViolations({
  required Map<String, String> before,
  required Map<String, String> after,
}) {
  final paths = {...before.keys, ...after.keys};
  return paths.where((path) => before[path] != after[path]).toList()..sort();
}