TypeViolation constructor

const TypeViolation({
  1. required Type type,
  2. required String name,
  3. required Map<String, dynamic> params,
  4. required dynamic value,
  5. required String path,
  6. required String message,
})

Create a new TypeViolation type the corresponding type name the name of the test that failed params the parameters of the failed test value the tested value path the path of the current property referencing the value message optional message of the violation

Implementation

const TypeViolation({
   required this.type,
   required this.name,
   required this.params,
   required this.value,
   required this.path,
   required this.message});