setUserWithProperty method

  1. @override
Future<void> setUserWithProperty(
  1. String userId, {
  2. String? groupId,
  3. Map<String, dynamic>? props,
})
override

Implementation

@override
Future<void> setUserWithProperty(
  String userId, {
  String? groupId,
  Map<String, dynamic>? props,
}) async {
  if (Platform.isIOS) {
    methodChannel.invokeMethod<void>('setUserWithProperty', {"user_id": userId, "group_id": groupId, "props": props});
  } else if (Platform.isAndroid) {
    methodChannel.invokeMethod<void>('setUserWithProperty', {"userId": userId, "groupId": groupId, "props": props});
  }
}