load method

Future<String?> load()

Implementation

Future<String?> load() async {
  final file = await _bootstrapFile();
  if (!await file.exists()) return null;

  try {
    final raw = await file.readAsString();
    final json = jsonDecode(raw);
    if (json is! Map<String, dynamic>) return null;
    return readPathFromJson(json, jsonPathKey);
  } catch (_) {
    return null;
  }
}