copyWithWrapped method

PlaybackState copyWithWrapped({
  1. Wrapped<String?>? token,
  2. Wrapped<int?>? offsetInMilliseconds,
  3. Wrapped<String?>? playerActivity,
})

Implementation

PlaybackState copyWithWrapped(
    {Wrapped<String?>? token,
    Wrapped<int?>? offsetInMilliseconds,
    Wrapped<String?>? playerActivity}) {
  return PlaybackState(
      token: (token != null ? token.value : this.token),
      offsetInMilliseconds: (offsetInMilliseconds != null
          ? offsetInMilliseconds.value
          : this.offsetInMilliseconds),
      playerActivity: (playerActivity != null
          ? playerActivity.value
          : this.playerActivity));
}