playerState property Null safety

PlayerState playerState

The current player state containing only the processing and playing states.

Implementation

PlayerState get playerState =>
    _playerStateSubject.nvalue ?? PlayerState(false, ProcessingState.idle);