Trimmer class

Helps in loading video from file, saving trimmed video to a file and gives video playback controls. Some of the helpful methods are:

Constructors

Trimmer()

Properties

currentVideoFile File
getter/setter pair
eventStream Stream<TrimmerEvent>
Listen to this stream to catch the events
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
videoPlayerController → VideoPlayerController
no setter

Methods

dispose() → void
Clean up
loadVideo({required File videoFile}) Future<void>
Loads a video using the path provided.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveTrimmedVideo({required double startValue, required double endValue, required dynamic onSave(String outputPath), bool applyVideoEncoding = false, FileFormat? outputFormat, String? ffmpegCommand, String? customVideoFormat, int? fpsGIF, int? scaleGIF, String? videoFolderName, String? videoFileName, StorageDir? storageDir}) Future<void>
Saves the trimmed video to file system.
toString() String
A string representation of this object.
inherited
videPlaybackControl({required double startValue, required double endValue}) Future<bool>
For getting the video controller state, to know whether the video is playing or paused currently.

Operators

operator ==(Object other) bool
The equality operator.
inherited