connect method

  1. @override
Future<ConnectResponse> connect({
  1. Map<String, RequiredNamespace>? requiredNamespaces,
  2. Map<String, RequiredNamespace>? optionalNamespaces,
  3. Map<String, String>? sessionProperties,
  4. String? pairingTopic,
  5. List<Relay>? relays,
  6. List<List<String>>? methods = ReownSign.DEFAULT_METHODS,
})
override

Implementation

@override
Future<ConnectResponse> connect({
  Map<String, RequiredNamespace>? requiredNamespaces,
  Map<String, RequiredNamespace>? optionalNamespaces,
  Map<String, String>? sessionProperties,
  String? pairingTopic,
  List<Relay>? relays,
  List<List<String>>? methods = ReownSign.DEFAULT_METHODS,
}) async {
  try {
    return await engine.connect(
      requiredNamespaces: requiredNamespaces,
      optionalNamespaces: optionalNamespaces,
      sessionProperties: sessionProperties,
      pairingTopic: pairingTopic,
      relays: relays,
      methods: methods,
    );
  } catch (e) {
    // print(e);
    rethrow;
  }
}