addViolation method
void
addViolation({})
Implementation
void addViolation({ required Type type,
required String name,
required Map<String, dynamic> params,
required dynamic value,
required String path,
String message = ""}) {
violations.add(TypeViolation(
type: type,
name: name,
params: params,
value: value,
path: path,
message: message,
));
}