emitState method

void emitState(
  1. int handle, {
  2. bool? isPlaying,
  3. bool? isBuffering,
  4. Duration? position,
  5. List<XDurationRange>? buffered,
})

Pushes a state change for handle; omitted fields stay as they are.

Implementation

void emitState(
  int handle, {
  bool? isPlaying,
  bool? isBuffering,
  Duration? position,
  List<XDurationRange>? buffered,
}) {
  _controllerFor(handle).add(
    XVideoPlayerStateChanged(
      handle,
      isPlaying: isPlaying,
      isBuffering: isBuffering,
      position: position,
      buffered: buffered,
    ),
  );
}