canLoadConfig method

Future<bool> canLoadConfig()

Returns a Future that resolves to true if the configuration can be loaded and false otherwise.

Default implementation checks if the configuration file exists however this may be overridden.

Implementation

Future<bool> canLoadConfig() async {
  var configFile = await resolveConfigFile();

  return configFile.existsSync();
}