url static method

StoryVideo url(
  1. String url, {
  2. StoryController? controller,
  3. Map<String, dynamic>? requestHeaders,
  4. Key? key,
  5. Widget? loadingWidget,
  6. Widget? errorWidget,
})

Implementation

static StoryVideo url(String url, {
  StoryController? controller,
  Map<String, dynamic>? requestHeaders,
  Key? key,
  Widget? loadingWidget,
  Widget? errorWidget,
}) {
  return StoryVideo(
    VideoLoader(url, requestHeaders: requestHeaders),
    storyController: controller,
    key: key,
    loadingWidget: loadingWidget,
    errorWidget: errorWidget,
  );
}