setLoading method
Set the value of a loading key by padding a true or false
Implementation
void setLoading(bool value,
    {String name = 'default', bool resetState = true}) {
  if (resetState) {
    setState(() {
      _loadingMap[name] = value;
    });
  } else {
    _loadingMap[name] = value;
  }
}