Video.fromSegments constructor
Video.fromSegments({
- List<
VideoSegment> ? segments, - Size? size,
Creates a new video composition with multiple VideoSegments.
The size
overrides the natural dimensions of the video(s) passed to the
editor. All videos will be fitted to the size
aspect by adding
black bars on the left and right side or top and bottom.
If segments
is set to null
, a valid size
must be given
which will initialize the editor with an empty composition.
Licensing:
In order to use this feature, you need to unlock the video composition feature for your license first.
Implementation
Video.fromSegments({List<VideoSegment>? segments, Size? size})
: _segments = segments,
_videos = null,
_size = size,
_video = null;