ErrorSeverity constructor

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

Initialize a newly created severity with the given names.

Implementation

const ErrorSeverity(this.name, this.weight, this.displayName);