toLint method

dynamic toLint(
  1. String key,
  2. dynamic location, {
  3. dynamic severity = LintSeverity.error,
})

Implementation

Lint toLint(String key, LintLocation location,
    {LintSeverity severity = LintSeverity.error}) {
  return Lint(
    code: key,
    message: lintMessage(key),
    severity: severity,
    location: location,
  );
}