searchedTexts static method

List<String> searchedTexts(
  1. LogEntry entry
)

The entry texts searched for the substring, as written: the message and, if present, the error (LogError.toString). The single definition of where text search looks; a store that indexes text (FTS5) indexes these.

Implementation

static List<String> searchedTexts(LogEntry entry) {
  final error = entry.error;
  return [entry.message, if (error != null) '$error'];
}