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