reportToDanger method Null safety

  1. @override
void reportToDanger(
  1. List<DangerDartErrorCase> errorCases
)

Implementation

@override
void reportToDanger(List<DangerDartErrorCase> errorCases) {
  for (var element in errorCases) {
    fail('''${element.fileName}#L${element.lineNo}
Name: ${element.testName}
```
${element.message}
```
''');
  }
}