ErrorType constructor

const ErrorType(
  1. String name,
  2. int weight,
  3. ErrorSeverity severity
)

Initialize a newly created error type to have the given name and severity.

Implementation

const ErrorType(this.name, this.weight, this.severity);