identify method

void identify({
  1. required String userId,
  2. String? username,
})

Implementation

void identify({required String userId, String? username}) {
  _onEach((p) {
    p.identify(userId: userId, username: username);
    if (username != null) {
      p.setUserProperties({"username": username});
    }
  });
}