FlutterVapView constructor

const FlutterVapView({
  1. Key? key,
  2. required FlutterVapController controller,
  3. VapCallback? onVideoStart,
  4. VapCallback? onVideoFinish,
  5. VapCallback? onVideoDestroy,
  6. VapFrameCallback? onVideoRender,
  7. VapErrorCallback? onFailed,
  8. VapScaleType scaleType = VapScaleType.fitXY,
})

Implementation

const FlutterVapView({
  super.key,
  required this.controller,
  this.onVideoStart,
  this.onVideoFinish,
  this.onVideoDestroy,
  this.onVideoRender,
  this.onFailed,
  this.scaleType = VapScaleType.fitXY,
});