onTriviaGameFinishedEvent method

StreamSubscription<Event> onTriviaGameFinishedEvent(
  1. Function callback
)

Implementation

StreamSubscription<Event> onTriviaGameFinishedEvent(Function callback) {
  return this.onEvent.listen((Event e) {
    if (e is TriviaGameFinishedEvent) {
      callback(e);
    }
  });
}