game property
Provides the game state for the current game of the client with specified id
Implementation
static final game = StreamProvider<Game>(
(ref) async* {
await for (final g in ref.watch(gameOrError.stream)) {
if (g.isGame) {
yield g.value!;
}
}
},
name: 'GameStateStream',
dependencies: [gameOrError.stream, playerID],
);