create static method

Future<TemplateCopier> create(
  1. SetupConfig config, {
  2. void onProgress(
    1. String message
    )?,
})

Create a TemplateCopier with templates ready This will download templates from GitHub if not available locally

Implementation

static Future<TemplateCopier> create(
  SetupConfig config, {
  void Function(String message)? onProgress,
}) async {
  final String templatesPath = await TemplatePathResolver.findTemplatesPath(
    onProgress: onProgress,
  );
  return TemplateCopier._(config, templatesPath);
}