removed unneeded query parameter from QueryTaskFunction

This commit is contained in:
Kingkor Roy Tirtho
2022-06-26 15:03:23 +06:00
parent d8024714cd
commit ff8fa9eb15
10 changed files with 15 additions and 21 deletions
@@ -8,7 +8,7 @@ import 'package:flutter_hooks/flutter_hooks.dart';
final queryHookExternalDataJob = QueryJob<String, double>(
queryKey: "query-hook-external-data",
cacheTime: const Duration(seconds: 10),
task: (queryKey, data, _) {
task: (queryKey, data) {
return Future.delayed(const Duration(milliseconds: 500),
() => "Hello from $queryKey with $data");
},