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
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
final jobWithExternalData = QueryJob<String, double>(
queryKey: "query-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");
},