waitFor method

bool waitFor(
  1. PlaybackState state, {
  2. int timeout = -1,
})

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);