get method Null safety

List<LogEntry> get(
  1. String logType
)

Implementation

List<LogEntry> get(String logType) {
  try {
    return _client.send(_handler.logs.buildGetLogsRequest(logType),
        _handler.logs.parseGetLogsResponse);
  } on UnknownCommandException {
    // Produces no entries for Firefox.
    return <LogEntry>[];
  }
}