runFlutterDoctor method
Run flutter doctor with spinner and return the output
Implementation
Future<String> runFlutterDoctor() async {
return await UserPrompt.withSpinner(
'Running flutter doctor (this may take a moment)...',
() async {
final ProcessResult result = await _runner.run('flutter', <String>['doctor', '-v']);
return result.stdout;
},
doneMessage: '✓ Flutter doctor complete',
);
}