promptGoogleMapsKey method
Prompts the user to enter their Google Maps API key and returns the value.
Implementation
String promptGoogleMapsKey() {
return Input(
prompt: 'Enter your Google Maps API Key',
validator: (value) {
if (value.trim().isEmpty) {
throw ValidationError('API key cannot be empty');
}
return true;
},
).interact();
}