setLoadingWidget static method
setLoadingWidget method to set the loading widget used when api calls
Example:
Service.setLoadingWidget(
Image.asset(
'assets/loading-c.gif',
height: 30,
width: 30,
),
);
Implementation
static setLoadingWidget(Widget loading) => _loadingWidget = loading;