Yes! I got it to work and can finally print my new list<my Class>. Thank you!
(I'm not sure whether I should post a follow-up question here, or a separate question).
But now instead of printing my data from this List<Componente>componente, I want to build a ListView.builder using this newly created list.
So far, when I try and build this ListView.builder, I get that the 'The getter 'length' was called on null.'
And I think that this happens because the ListView is called first, with an initial value of null, and THEN I'm converting my QuerySnapshot into my <Componente> componentes List.
What I don't get, though, is why this error happens even as I have this function initialized inside my initState()??
Shouldn't it build properly since I'm initializing the List and converting my list here?
Thanks for your help :)
--A.V.
And here's what I have and I'm trying just in case.
Future<void> getData() async {