write method
Called when Talker handle an TalkerDataInterface
log
Implementation
@override
void write(TalkerData data) {
/// Check if you are authorized to write.
if (settings.useHistory && settings.enabled) {
/// Check if you have reached the max number of history and delete them.
if (settings.maxHistoryItems <= _history.length) {
_history.removeAt(0);
}
_history.add(data);
}
}