toAlert method
The alert this error raises the first time it is seen.
Implementation
AppAlert toAlert() {
final overflow = OverflowInfo.parse(summary);
return AppAlert(kind, kind.name, line, {
'summary': summary,
if (location != null) 'location': location,
if (library != null) 'library': library,
...?overflow?.toJson(),
});
}