buildAttachControllerArgs function
Implementation
List<String> buildAttachControllerArgs(
List<String> controllerEntrypointArgs, {
required String sessionDir,
required String project,
required String device,
required String flutter,
String? target,
String? appId,
String? debugUrl,
required bool verbose,
}) =>
[
...controllerEntrypointArgs,
'--mode',
'attach',
'--session-dir',
sessionDir,
'--project',
project,
'--device',
device,
'--flutter',
flutter,
if (target != null) ...['--target', target],
if (appId != null) ...['--app-id', appId],
if (debugUrl != null) ...['--debug-url', debugUrl],
if (verbose) '--verbose',
];