refactor: remove KyeType and use String for queryKey and mutationKey

This commit is contained in:
Kingkor Roy Tirtho
2023-02-23 11:43:08 +06:00
parent 6a90f847c9
commit 842a549356
12 changed files with 147 additions and 175 deletions
@@ -13,8 +13,8 @@ class QueryPage extends StatelessWidget {
appBar: AppBar(
title: const Text('Query'),
),
floatingActionButton: QueryListenable<String, dynamic, String>(
const ValueKey('hello'), builder: (context, query) {
floatingActionButton:
QueryListenable<String, dynamic>('hello', builder: (context, query) {
if (query == null) {
return const SizedBox();
}
@@ -25,8 +25,8 @@ class QueryPage extends StatelessWidget {
child: Text(query.data ?? 'No Data'),
);
}),
body: QueryBuilder<String, dynamic, String>(
const ValueKey('hello'),
body: QueryBuilder<String, dynamic>(
'hello',
() {
return Future.delayed(
const Duration(seconds: 6), () => 'Hello World! $value');