diagnostics property
Returns the errors, warnings and info available in the editor as a List<LspErrors>. Each LspErrors item holds the error severity, range and the message of each errors.
Implementation
List<LspErrors> get diagnostics => diagnosticsNotifier.value;