validateFlutterFireInstallation static method

bool validateFlutterFireInstallation()

Validates that the flutterfire CLI tool is installed.

Checks if the flutterfire command is available in the system PATH.

Returns: true if flutterfire is installed, false otherwise

Example:

// Check if flutterfire is installed before configuring Firebase
if (FirebaseHelper.validateFlutterFireInstallation()) {
  print('flutterfire CLI is installed');
  // Proceed with Firebase configuration
} else {
  print('flutterfire CLI is not installed');
  print('Please install it with: dart pub global activate flutterfire_cli');
}

Implementation

static bool validateFlutterFireInstallation() {
  return which('flutterfire').found;
}