lastWritten property
getter/setter pair
A cache of the last log message written for each message type written to a file
This is used by logData to avoid rewriting logs with duplicate data, which reduces file size and improves performance
Implementation
Map<String, WrappedMessage> lastWritten = {};