MiniProgramMediaPlaybackPolicy constructor

const MiniProgramMediaPlaybackPolicy({
  1. bool audioEnabled = false,
  2. bool videoEnabled = false,
  3. bool temporaryCacheEnabled = false,
  4. bool? audioTemporaryCacheEnabled,
  5. bool? videoTemporaryCacheEnabled,
})

Implementation

const MiniProgramMediaPlaybackPolicy({
  this.audioEnabled = false,
  this.videoEnabled = false,
  this.temporaryCacheEnabled = false,
  bool? audioTemporaryCacheEnabled,
  bool? videoTemporaryCacheEnabled,
}) : audioTemporaryCacheEnabled =
         audioTemporaryCacheEnabled ?? temporaryCacheEnabled,
     videoTemporaryCacheEnabled =
         videoTemporaryCacheEnabled ?? temporaryCacheEnabled;