BlingVideoPlayer constructor

const BlingVideoPlayer({
  1. Key? key,
  2. BlingVideoPlayerController? controller,
  3. double? width,
  4. double? height,
  5. Alignment? alignment,
  6. BoxFit? fit,
  7. BlingVideoBuilder? indicatorBuilder,
  8. BlingVideoBuilder? placeholderBuilder,
  9. BlingVideoBuilder? bufferBuilder,
  10. Color? color,
  11. PanelBuilder? panelBuilder,
  12. AsyncErrorWidgetBuilder? errorWidgetBuilder,
  13. InitializedBuilder? initializedBuilder,
  14. bool? delayInit,
})

Creates a widget that displays an videoPlayer. If you're just playing a video and not doing too much,you might want to use a convenience constructor BlingVideoPlayer.assetsBlingVideoPlayer.file or BlingVideoPlayer.network

Implementation

const BlingVideoPlayer(
    {Key? key,
    BlingVideoPlayerController? controller,
    double? width,
    double? height,
    Alignment? alignment,
    BoxFit? fit,
    BlingVideoBuilder? indicatorBuilder,
    BlingVideoBuilder? placeholderBuilder,
    BlingVideoBuilder? bufferBuilder,
    Color? color,
    PanelBuilder? panelBuilder,
    AsyncErrorWidgetBuilder? errorWidgetBuilder,
    InitializedBuilder? initializedBuilder,
    bool? delayInit})
    : _dataSource = null,
      _mixWithOthers = null,
      _package = null,
      _closedCaptionFile = null,
      _isLooping = null,
      super(controller,
          key: key,
          width: width,
          height: height,
          alignment: alignment,
          fit: fit,
          indicatorBuilder: indicatorBuilder,
          placeholderBuilder: placeholderBuilder,
          bufferBuilder: bufferBuilder,
          color: color,
          panelBuilder: panelBuilder,
          errorWidgetBuilder: errorWidgetBuilder,
          initializedBuilder: initializedBuilder);