errorWidget function
Implementation
Widget errorWidget(BuildContext context, {Function()? callback, Object? error}) {
var lang = appLocalizationsWrapper.lang;
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Center(child: AlertVerticalWidget.createDanger(lang.couldNotLoadData)),
if (callback != null)
TextButton(
child: Text(lang.retry.toUpperCase()),
onPressed: () => callback.call(),
)
],
);
}