group method
Associates the current user with a group.
groupId
is the unique identifier for the group.
groupTraits
contains additional information about the group.
options
allows you to specify additional options for this call.
The group call lets you link an identified user with a group such as a company, organization, or an account.
Implementation
@override
void group(String groupId,
{RudderTraits? groupTraits, RudderOption? options}) {
Map<String, dynamic> params = {};
params["groupId"] = groupId;
if (groupTraits != null) {
params["groupTraits"] = groupTraits.toMobileTraits();
}
if (options != null) {
params["options"] = options.toMobileMap();
}
_platformChannel.invokeMethod("group", params);
}