setUser static method

Future<void> setUser(
  1. String userId
)

Implementation

static Future<void> setUser(String userId) async {
  try {
    await _channel
        .invokeMethod<void>('SetUser', <String, dynamic>{'UserId': userId});
  } catch (e) {
    print(e.toString());
  }
}