VideoPlayer constructor

VideoPlayer(
  1. String url,
  2. {@required double aspectRatio,
  3. bool autoResize: true,
  4. bool autoplay: false,
  5. bool controls: false,
  6. Key key,
  7. bool loop: false,
  8. Widget poster}
)

Creates a player.

Implementation

VideoPlayer(
  this.url, {
  @required this.aspectRatio,
  this.autoResize = true,
  this.autoplay = false,
  this.controls = false,
  Key key,
  this.loop = false,
  this.poster,
})  : assert(url != null),
      assert(aspectRatio != null),
      super(key: key);