selectShouldRunPubGet function

bool selectShouldRunPubGet()

Prompt user if they want to run pub get after project creation

Implementation

bool selectShouldRunPubGet() {
  final yes = 'Yes *';
  final no = 'No';

  final result = selectOne(
    'Run `pub get` after create?',
    choices: [yes, no],
    defaultValue: yes,
  );

  return result == yes;
}