getRequest method
dynamic
getRequest()
Implementation
getRequest() async {
/// Show the loader before the request
LoaderProvider().increment();
/// Simulate a request and decrement the loader
await Future.delayed(const Duration(seconds: 2), () {})
.then((value) => LoaderProvider().decrement());
}