sendLogs method
Sends the provided logs or all logs to all sub windows.
Implementation
void sendLogs([List<InfospectLog>? logs]) {
if (logs == null) {
_sendDataToSubWindow(data: _infospect.infospectLogger.logsMap);
} else {
_sendDataToSubWindow(
data: {
'logs': logs.map<Map<String, dynamic>>((e) => e.toMap()).toList()
},
);
}
}