ListPubVersions constructor

ListPubVersions({
  1. String name = 'allpub',
  2. bool defaultToDir = true,
})

Implementation

ListPubVersions({super.name = 'allpub', bool defaultToDir = true})
    : super(
          description: 'Lists all pub.flutter-io.cn versions for this package',
          configureArg: (arg) => arg
            ..addOption("source",
                abbr: "s",
                help: 'The path to a pubspec file, or a package name',
                mandatory: false,
                defaultsTo: defaultToDir ? './pubspec.yaml' : null));