TypeViolation class

This class describes a single violation.

Constructors

TypeViolation.new({required Type type, required String name, required Map<String, dynamic> params, required dynamic value, required String path, 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
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
final
name String
final
params Map<String, dynamic>
final
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
final
value → dynamic
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited