run static method

Future<int> run(
  1. List<String> args, {
  2. List<GeneratorAdapter>? adapters,
  3. String? sdkPath,
})

The 'main' entrypoint used by the command-line tool. args are the command-line arguments. The optional parameter adapters allows you to customize the generators that pigeon will use. The optional parameter sdkPath allows you to specify the Dart SDK path.

Implementation

static Future<int> run(List<String> args,
    {List<GeneratorAdapter>? adapters, String? sdkPath}) {
  final PigeonOptions options = Pigeon.parseArgs(args);
  return runWithOptions(options, adapters: adapters, sdkPath: sdkPath);
}