runWaitCli function

Future<int> runWaitCli(
  1. List<String> args
)

CLI adapter for fdb wait. Accepts:

--present wait until the selector is present --absent wait until the selector is absent --key VALUE select by ValueKey label --text VALUE select by visible text --type VALUE select by widget type name --route VALUE select by route name --timeout MS override timeout in milliseconds (default 10000)

Implementation

Future<int> runWaitCli(List<String> args) {
  final parser = ArgParser()
    ..addFlag('present', negatable: false, help: 'Wait until selector is present')
    ..addFlag('absent', negatable: false, help: 'Wait until selector is absent')
    ..addOption('key', help: 'Select by ValueKey label')
    ..addOption('text', help: 'Select by visible text')
    ..addOption('type', help: 'Select by widget type name')
    ..addOption('route', help: 'Select by route name')
    ..addOption('timeout', help: 'Timeout in milliseconds (default 10000)');

  return runCliAdapter(parser, args, _execute);
}