pubFlags property

  1. @override
List<String> get pubFlags
override

Implementation

@override
List<String> get pubFlags => [
      if (argResults!['offline'] as bool) '--offline',
      if (argResults!['dry-run'] as bool) '--dry-run',
      if (argResults!['precompile'] as bool) '--precompile',
      if (argResults!['tighten'] as bool) '--tighten',
      if (argResults!['major-versions'] as bool) '--major-versions',
      if (argResults!['unlock-transitive'] as bool) '--unlock-transitive',
      if (argResults!.rest.isNotEmpty) ...argResults!.rest,
    ];