traitUp method
Implementation
void traitUp(String event, Map<String, dynamic> payload) {
if (this.event == event || waitsForEvents.contains(event)) {
if ( payload.containsKey(traitName) ) {
final trait = payload[traitName] as String;
traitCount[trait] = (traitCount[trait] ?? 0) + 1;
}
}
}