loadFromCloud static method

Future<void> loadFromCloud()

Loads config from Cloud Functions on web. Stores into AppProperties.appProperties so both classes share the same data.

Implementation

static Future<void> loadFromCloud() async {
  final data = await callSecureOps({'action': 'getConfig'});
  appProperties = data;
  isSecureMode = true;
  neomLogger.t("Properties loaded from Cloud Functions (${(data as Map).length} keys)");
}