traitUp method

void traitUp(
  1. String event,
  2. Map<String, dynamic> payload
)

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;
    }
  }
}