run static method
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);
}