copyWithWrapped method

Context copyWithWrapped({
  1. Wrapped<AlexaSystem?>? system,
  2. Wrapped<PlaybackState?>? audioPlayer,
  3. Wrapped<Geolocation?>? geolocation,
})

Implementation

Context copyWithWrapped(
    {Wrapped<AlexaSystem?>? system,
    Wrapped<PlaybackState?>? audioPlayer,
    Wrapped<Geolocation?>? geolocation}) {
  return Context(
      system: (system != null ? system.value : this.system),
      audioPlayer:
          (audioPlayer != null ? audioPlayer.value : this.audioPlayer),
      geolocation:
          (geolocation != null ? geolocation.value : this.geolocation));
}