issues property
List<ValidationIssue>
get
issues
Implementation
List<ValidationIssue> get issues {
return DartApi.native.validationResult.issuesGet(_ffi).extract((resp) {
return resp.asList((ffiIssue) {
final issueApi = DartApi.native.validationIssue;
final code = issueApi.codeGet(ffiIssue);
final nativeReason = issueApi.reasonGet(ffiIssue);
final nativeSeverity = issueApi.severityGet(ffiIssue);
try {
final reason = nativeReason.toDartString();
final severity = nativeSeverity.toDartString();
return ValidationIssue(code, reason, severity);
} finally {
calloc.free(nativeSeverity);
calloc.free(nativeReason);
issueApi.delete(ffiIssue);
}
});
});
}