setUser method

  1. @override
Future<void> setUser(
  1. String userId,
  2. Map<String, dynamic> attributes
)
override

Sets the user for this session.

This user context is used for any other functions you call.

Implementation

@override
Future<void> setUser(String userId, Map<String, dynamic> attributes) async {
  await methodChannel.invokeMethod('setUser', <String, dynamic>{
    'user_id': userId,
    'attributes': attributes,
  });
}