Boa tarde, estou listando os contatos salvos no banco, porem recebo esse exception, como posso contornar essa situação ?
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Debug service listening on ws://127.0.0.1:61716/xGBirOslEME=/ws
Syncing files to device Android SDK built for x86...
D/EGL_emulation(19511): eglMakeCurrent: 0x9be7ad00: ver 2 0 (tinfo 0x9e87f550)
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following _CastError was thrown building FutureBuilder<List<dynamic>>(dirty, state: _FutureBuilderState<List<dynamic>>#d2cb6):
type 'List<dynamic>' is not a subtype of type 'List<Contato>' in type cast
The relevant error-causing widget was:
FutureBuilder<List<dynamic>> file:///C:/projetos-java/flutter_app_bytebank/lib/screens/lista_contatos.dart:16:13
When the exception was thrown, this was the stack:
#0 ListaContatos.build.<anonymous closure> (package:flutter_app_bytebank/screens/lista_contatos.dart:20:65)
#1 _FutureBuilderState.build (package:flutter/src/widgets/async.dart:775:55)
#2 StatefulElement.build (package:flutter/src/widgets/framework.dart:4691:27)
#3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4574:15)
#4 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4746:11)
...
════════════════════════════════════════════════════════════════════════════════════════════════════