create static method
Future<GqlConnection>
create({
- required GqlConnectionPost post,
- required GqlConnectionGet get,
- required GqlNetworkSettings settings,
- required String name,
- 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;
}