create static method

Future<GqlConnection> create({
  1. required GqlConnectionPost post,
  2. required GqlConnectionGet get,
  3. required GqlNetworkSettings settings,
  4. required String name,
  5. required String group,
})

Implementation

static Future<GqlConnection> create({
  required GqlConnectionPost post,
  required GqlConnectionGet get,
  required GqlNetworkSettings settings,
  required String name,
  required String group,
}) async {
  final instance = GqlConnection._(post, get, settings, name, group);

  final lib = createLib();
  instance.connection = await lib.newStaticMethodGqlConnectionDartWrapper(
    instanceHash: instance.instanceHash,
    isLocal: settings.local,
  );

  return instance;
}