error property

Provides the game error for the current game of the client with specified id

Implementation

static final error = StreamProvider<GameError>(
  (ref) async* {
    await for (final g in ref.watch(gameOrError.stream)) {
      if (g.isError) {
        yield g.error!;
      }
    }
  },
  name: 'GameError',
  dependencies: [gameOrError.stream, playerID],
);