showLoading method

void showLoading({
  1. String? msg,
  2. bool animation = true,
})

Implementation

void showLoading({String? msg, bool animation = true}) {
  _animation = animation;
  _isLoading = true;
  _loadingText = msg;
  notifyListeners();
}