isLoading method

bool isLoading({
  1. String name = 'default',
})

Checks the value from your loading map. Provide the name of the loader.

Implementation

bool isLoading({String name = 'default'}) {
  if (_loadingMap.containsKey(name) == false) {
    _loadingMap[name] = false;
  }
  return _loadingMap[name]!;
}