VideoPlayer constructor

VideoPlayer(
  1. Object? path, {
  2. VideoSource source = VideoSource.network,
  3. bool autoPlay = false,
  4. bool looping = false,
  5. bool showControls = true,
  6. double? width,
  7. double? height,
  8. String? name,
  9. Object? visible,
})

Implementation

VideoPlayer(
  Object? path, {
  this.source = VideoSource.network,
  this.autoPlay = false,
  this.looping = false,
  this.showControls = true,
  this.width,
  this.height,
  String? name,
  Object? visible,
}) : path = normalizeExpression(path),
     super(name: name, visible: _normalizeVisibility(visible));