title: notify listener not updating the UI
body: <p>Notifier class</p>
  <pre><code>class CategoryProvider with ChangeNotifier {
    DocumentSnapshot? doc;
    String? selectedCategory;
  
    List&lt;String&gt; urlList = [];
  
    setCategory(selectedCat) {
      this.selectedCategory = selectedCat;
      notifyListeners();
    }
  
    setCatSnapshot(DocumentSnapshot snapshot) {
      this.doc = snapshot;
      notifyListeners();
    }
  
    addImages(url) {
      this.urlList.add(url);
      notifyListeners();
    }
  }
  </code></pre>
  <p>Widget that needs to be updated with new urlList</p>
  <p>printing the length however gives the updated url list value</p>
  <p>i did try by directly passing _provider.urlList yet the same issue</p>
  <pre><code>Widget loadGalary(BuildContext context) {
        print(_provider.urlList.length.toString());
        List&lt;String&gt; urlList = List.from(_provider.urlList);
        return GalleryImage(
          titileGallery: 'Galary',
          imageUrls: urlList,
        );
      }
  </code></pre>