onVideoPresentationStopped method

Stream<Event<VideoPresentationEventNames, void>> onVideoPresentationStopped()

Returns a Stream of the VideoPresentationEventNames.videoPresentationStopped events. By subscribing to the returned stream you will be notified each time a video presentation ends.

Implementation

Stream<Event<VideoPresentationEventNames, void>>
    onVideoPresentationStopped() {
  return _nativeEventsReceiver.addListener(
      [VideoPresentationEventNames.videoPresentationStopped]).map((map) {
    final event = map as Map<Object?, Object?>;
    final key = VideoPresentationEventNames.valueOf(event["key"] as String);
    return Event(key, null);
  });
}