SchemaSync constructor

SchemaSync(
  1. GraphQLGenConfig config,
  2. GqlSchema schema, {
  3. String root = '.',
  4. bool regenerate = false,
})

Implementation

SchemaSync(
  this.config,
  this.schema, {
  this.root = '.',
  this.regenerate = false,
}) : layout = Layout(config),
     types = TypeMapper(schema, config) {
  models = ModelTemplate(
    config,
    types,
    convertersImport: config.packageImport(
      p.join(config.output, config.fileName(GeneratedFile.enumConverters)),
    ),
  );
  singles = SingleFileTemplates(config, schema, types);
}