|
|
|
|
@ -6,8 +6,8 @@ import '../../exceptions/api_exception.dart';
|
|
|
|
|
class LoadingNotifier with ChangeNotifier {
|
|
|
|
|
bool _loading = false;
|
|
|
|
|
|
|
|
|
|
/// - Returns [TRUE] if [waitApiResult] function called
|
|
|
|
|
/// - Returns [FALSE] if [waitApiResult] function completed in both states (failed, succeed)
|
|
|
|
|
/// - Returns [TRUE] if [waitApiRequest] function called
|
|
|
|
|
/// - Returns [FALSE] if [waitApiRequest] function completed in both states (failed, succeed)
|
|
|
|
|
bool get loading => _loading;
|
|
|
|
|
|
|
|
|
|
/// - [fun] : Callback function that contains the API request.
|
|
|
|
|
|