load method
Implementation
Future<void> load() async {
loading = true;
lastError = null;
notifyListeners();
try {
snapshot = await _build();
loading = false;
notifyListeners();
} catch (error) {
loading = false;
lastError = 'Failed to load browse snapshot: $error';
notifyListeners();
}
}