load static method

Future<void> load()

Call this once at app start

Implementation

static Future<void> load() async {
  final file = await _getConfigFile();

  if (!file.existsSync()) return;

  final content = await file.readAsString();
  final data = jsonDecode(content);

  _cachedName = data['name'];
}