pub method

Future<int> pub(
  1. List<String> args,
  2. {int nameWidth}
)

Implementation

Future<int> pub(
  List<String> args, {
  int nameWidth,
}) {
  final executable = isFlutter ? "flutter" : "pub";
  final arguments = isFlutter ? ["pub", ...args] : args;

  return run(
    executable,
    arguments,
    nameWidth: nameWidth,
  );
}