create static method

Future<JrpcConnection> create({
  1. required JrpcConnectionPost post,
  2. required JrpcNetworkSettings settings,
  3. required String name,
  4. required String group,
})

Implementation

static Future<JrpcConnection> create({
  required JrpcConnectionPost post,
  required JrpcNetworkSettings settings,
  required String name,
  required String group,
}) async {
  final instance = JrpcConnection._(post, settings, name, group);

  final lib = createLib();
  instance.connection = await lib.newStaticMethodJrpcConnectionDartWrapper(
    instanceHash: instance.instanceHash,
  );

  return instance;
}