Meu snapshot está com erro : A value of type 'Object?' can't be assigned to a variable of type 'List'. Try changing the type of the variable, or casting the right-hand type to 'List'.
Você está vendo a versão anterior da nova experiência da Alura que estamos preparando para você. Em breve, ela ganha uma identidade visual novinha totalmente pensada em potencializar seus estudos!
Meu snapshot está com erro : A value of type 'Object?' can't be assigned to a variable of type 'List'. Try changing the type of the variable, or casting the right-hand type to 'List'.
Tenta mudar o Object? por dynamic, fiz aqui e funcionou.
se mudar como object, ele da outro erro no itemCount :(
Consegui Solucionar assim : final contacts = (snapshot.data as List);
Tive o mesmo problema e olhando para a sua solução, eu resolvi assim:
final List<Contact contacts = snapshot.data as List<Contact;
observação, coloque o sintal de > depois do tipo Contact
Consegui Resolver deve jeito também: final contacts = (snapshot.data as List);