VapView constructor

const VapView({
  1. Key? key,
  2. ScaleType scaleType = ScaleType.fitCenter,
  3. int repeat = 0,
  4. bool mute = false,
  5. Map<String, VAPContent>? vapTagContents,
  6. dynamic onViewCreated(
    1. VapController
    )?,
})

Creates a VapView widget.

All parameters are optional and have sensible defaults:

  • scaleType: How to scale the video (defaults to ScaleType.fitCenter)
  • repeat: Number of repetitions (defaults to 0 for no repeat)
  • mute: Whether to mute audio (defaults to false)
  • vapTagContents: Initial content for VAP tags (optional)
  • onViewCreated: Callback to receive the controller (optional)

Implementation

const VapView(
    {super.key,
    this.scaleType = ScaleType.fitCenter,
    this.repeat = 0,
    this.mute = false,
    this.vapTagContents,
    this.onViewCreated});