getLoadingWidget property

Widget? get getLoadingWidget

getLoadingWidget method to get the loading widget used when api calls

Example:

Service.setLoadingWidget(
 Image.asset(
 'assets/loading-c.gif',
 height: 30,
 width: 30,
 ),
 );
 print(Service.getLoadingWidget); // Image.asset(...)

Implementation

static Widget? get getLoadingWidget => _loadingWidget;