سلام هنگام اجرا همچین خطایی دارم
lib/screens/home/home.dart(93,40): error GC2F972A8: The argument type 'Future<List<dynamic>>' can't be assigned to the parameter type 'Future<List<TaskEntity>>?'. [E:\flutter\todolist\todolist\build\windows\flutter\flutter_assemble.vcxproj]
Expanded(
child: ValueListenableBuilder<String>(
valueListenable: searchkeywordNotifier,
builder: (context, value, child) {
return Consumer<Repository<TaskEntity>>(
builder: (context, repository, child) {
return FutureBuilder<List<TaskEntity>>(
future:
repository.gettAll(searchKeyword: controller.text),
builder: (context, snapshot) {
if (snapshot.hasData) {
if (snapshot.data!.isNotEmpty) {
return TaskList(
items: snapshot.data!, themeData: themeData);
} else {
return const EmptyState();
}
} else {
return const CircularProgressIndicator();
}
},
);
},
);
},
),
),