Created
June 21, 2022 11:24
-
-
Save velotiotech/8f3a640fc26e52496f215f5d6cb660d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subscription( options: SubscriptionOptions( document: gql(counterSubscription), ), builder: (result) { if (result.hasException) { return Text("Error occurred: " + result.exception.toString()); } if (result.isLoading) { return Center( child: const CircularProgressIndicator(), ); } return ResultAccumulator.appendUniqueEntries( latest: result.data, builder: (context, {results}) => ... ); }), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment