recoveryPreferenciaServiceAddress method

Future<String> recoveryPreferenciaServiceAddress()

Implementation

Future<String> recoveryPreferenciaServiceAddress() async {
  var valueToReturn = preferenciasServiceAddress ?? globalPreferencesServerAddress;
  if (kDebugMode | kProfileMode) {
    const message = 'la variable `preferencias.server` no está definida';
    final devapp = DevAppManager();
    final value = await devapp.readValue(preferenciasService);
    if (value == null) throw Exception(message);
    valueToReturn = value;
  }
  return valueToReturn;
}