Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The following code in Player_buttons is not working return _playPauseButton(playerState); and this is the error that I'm currently getting with the code:The argument type 'PlayerState?' can't be assigned to the parameter type 'PlayerState'. #5

Open
travisdang36 opened this issue Jul 12, 2022 · 0 comments

Comments

@travisdang36
Copy link

The following code in Player_buttons is not working return _playPauseButton(playerState); and this is the error that I'm currently getting with the code:The argument type 'PlayerState?' can't be assigned to the parameter type 'PlayerState'.

Code segment:

StreamBuilder<PlayerState>(
          stream: _audioPlayer.playerStateStream,
          builder: (_, snapshot) {
            final playerState = snapshot.data;
            return _playPauseButton(playerState); //null operator checker
          },
        ),

Originally posted by @travisdang36 in #4 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant