getState method
@detail api
@brief Get the state of the media player.
@return The current state of the media player. See PlayerState{@link #PlayerState}.
@note You can call this method after the creating a IMediaPlayer instance.
Implementation
FutureOr<PlayerState> getState() async {
return await nativeCall('getState', []);
}