setLoadingWidget static method

dynamic setLoadingWidget(
  1. Widget loading
)

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;