setFileSource method

Future<void> setFileSource(
  1. String filePath, {
  2. bool isLooping = false,
  3. bool autoPlay = true,
  4. bool? mixWithOthers,
  5. Future<ClosedCaptionFile>? closedCaptionFile,
  6. Widget? prepare,
  7. Alignment? alignment,
  8. BoxFit? fit,
})

Implementation

Future<void> setFileSource(String filePath,
    {bool isLooping = false,
    bool autoPlay = true,
    bool? mixWithOthers,
    Future<ClosedCaptionFile>? closedCaptionFile,
    Widget? prepare,
    Alignment? alignment,
    BoxFit? fit}) {
  return setDataSource("file://" + filePath,
      isLooping: isLooping,
      autoPlay: autoPlay,
      mixWithOthers: mixWithOthers,
      closedCaptionFile: closedCaptionFile,
      prepare: prepare,
      alignment: alignment,
      fit: fit);
}