waitFor method
Wait for state
in current thread
Implementation
bool waitFor(PlaybackState state, {int timeout = -1}) => _player.ref.waitFor
.asFunction<bool Function(Pointer<mdkPlayer>, int, int)>()(
_player.ref.object, state.rawValue, timeout);