query reusability by QueryJob
QueryJob.task External Data Support Query task is now pure function Query.data is non-nullable (even the type)
This commit is contained in:
@@ -6,7 +6,7 @@ class AnotherComponent extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final lol = QueryBowl.of(context).getQuery<String>("greetings");
|
||||
final lol = QueryBowl.of(context).getQuery<String, void>("greetings");
|
||||
if (lol?.data == null) return const CircularProgressIndicator();
|
||||
return Text("${lol!.data!} from AnotherComponent");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user