loadAndBuild method
Implementation
Future<List<HtmlNode>> loadAndBuild(RouteDataContext context) async {
try {
final res = await dataProvider.load(context);
if (res.isFound && res.data != null) {
return builder(res.data as T, context);
}
return errorPlaceholder ?? [H.p('Content not found.')];
} catch (_) {
return errorPlaceholder ?? [H.p('Failed to load content.')];
}
}