emitState method
void
emitState(})
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,
),
);
}