VideoDetails constructor

VideoDetails(
  1. String videoPath
)

Implementation

VideoDetails(this.videoPath) {
  // **Initialize video details:**
  //
  // 1. Extract video name using the `videoNameHelper` method from `VideoHelper`
  videoName = VideoHelper.videoNameHelper(videoPath);
  // 2. Calculate video size in a human-readable format using the `videoSizeHelper` method from `VideoHelper`
  videoSize = VideoHelper.videoSizeHelper(videoPath);
  // 3. Initialize a `ThumbnailController` object with the video path
  thumbnailController = ThumbnailController(videoPath: this.videoPath);
}