fastClone function

Future<void> fastClone({
  1. required Platform platform,
  2. required String ownerAndRepo,
  3. Protocol protocol = Protocol.https,
  4. String? directory,
  5. Map<String, dynamic>? options,
  6. Callback? callback,
})

Clone a git repository from Platform and ownerAndRepo by calling gitClone.

You can also change the protocol to other supported Protocols. Default is Protocol.https.

Example:

fastClone(
  platform: Platform.github,
  ownerAndRepo: 'g1eny0ung/git_clone',
)

Implementation

Future<void> fastClone({
  required Platform platform,
  required String ownerAndRepo,
  Protocol protocol = Protocol.https,
  String? directory,
  Map<String, dynamic>? options,
  Callback? callback,
}) {
  return gitClone(
    repo: platform.parseUri(ownerAndRepo, protocol),
    directory: directory,
    options: options,
    callback: callback,
  );
}