run method

  1. @override
Future<void> run(
  1. List<String> args,
  2. Map<String, dynamic> flags
)

Run defines what code should be ran when this command is executed.

Implementation

@override
Future<void> run(List<String> args, Map<String, dynamic> flags) async {
  await shell.run('flutter pub global activate me', verbose: true);
}