fastClone function
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,
);
}