createInstance static method
Future<ReownAppKit>
createInstance({
- required String projectId,
- String relayUrl = ReownConstants.DEFAULT_RELAY_URL,
- required PairingMetadata metadata,
- bool memoryStore = false,
- LogLevel logLevel = LogLevel.nothing,
- HttpWrapper httpClient = const HttpWrapper(),
Implementation
static Future<ReownAppKit> createInstance({
required String projectId,
String relayUrl = ReownConstants.DEFAULT_RELAY_URL,
required PairingMetadata metadata,
bool memoryStore = false,
LogLevel logLevel = LogLevel.nothing,
HttpWrapper httpClient = const HttpWrapper(),
}) async {
final client = ReownAppKit(
core: ReownCore(
projectId: projectId,
relayUrl: relayUrl,
memoryStore: memoryStore,
logLevel: logLevel,
httpClient: httpClient,
),
metadata: metadata,
);
await client.init();
return client;
}