setLoading method

void setLoading(
  1. bool newVal
)

Implementation

void setLoading(bool newVal) => setState(() {
      isLoading = newVal;
    });