best method

Future<String> best({
  1. String to = 'install',
})

Determines the best installation method based on the user's preferences and the operating system.

The to parameter is the installation target.

Implementation

Future<String> best({String to = 'install'}) async {
  await boot();

  if (forceMethod) {
    if (preferredMethod == 'auto') {
      leave(message: 'Use --force-method with --method=', exitCode: 1);
    }
  }

  return await useMethod(to);
}