pub method

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

Implementation

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

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