logLocalEventEntries method

void logLocalEventEntries(
  1. List<String> entries, {
  2. String prefix = "LOG",
  3. String separator = "|",
})

Logs event to EventChannel, but uses List.join with separator to join prefix and description. This is used to send events to the EventChannel for integration into existing communication flow. The event will be sent as a String with the following format:

  • (if prefix is not empty): "prefix|description", where '|' is separator
  • (if prefix is empty): "description"

Implementation

void logLocalEventEntries(List<String> entries, {String prefix = "LOG", String separator = "|"}) {
  logLocalEvent(entries.join(separator), prefix: prefix, separator: separator);
}