VideoEditorController class Null safety

Inheritance

Constructors

VideoEditorController.file(File file, {Duration? maxDuration, TrimSliderStyle? trimStyle, CoverSelectionStyle? coverStyle, CropGridStyle? cropStyle})
Constructs a VideoEditorController that edits a video from a file.

Properties

cacheMaxCrop Offset
read / write
cacheMinCrop Offset
read / write
coverStyle CoverSelectionStyle
Style for CoverSelection
final
cropStyle CropGridStyle
Style for CropGridViewer
final
endTrim Duration
The endTrim
read-only
file File
Video from File.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
hasListeners bool
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
initialized bool
Get the VideoPlayerController.value.initialized
read-only
isCropping bool
read / write
isPlaying bool
Get the VideoPlayerController.value.isPlaying
read-only
isTrimming bool
Get the isTrimming
read / write
isTrimmmed bool
Get the isTrimmed
read-only
maxCrop Offset
The BottomRight Offset (Range is Offset(0.0, 0.0) to Offset(1.0, 1.0)).
read / write
maxDuration Duration
Get the maxDuration
read-only
maxTrim double
The MaxTrim (Range is 0.0 to 1.0).
read / write
minCrop Offset
The TopLeft Offset (Range is Offset(0.0, 0.0) to Offset(1.0, 1.0)).
read / write
minTrim double
The MinTrim (Range is 0.0 to 1.0).
read / write
preferredCropAspectRatio double?
read / write
rotation int
Get the Rotation Degrees
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectedCoverNotifier ValueNotifier<CoverData?>
Get the selectedCover notifier
read-only
selectedCoverVal CoverData?
Get the selectedCover value
read-only
startTrim Duration
The startTrim
read-only
trimPosition double
Get the VideoPosition (Range is 0.0 to 1.0).
read-only
trimStyle TrimSliderStyle
Style for TrimSlider
final
video VideoPlayerController
Get the VideoPlayerController
read-only
videoDimension Size
Get the Video Dimension like VideoWidth and VideoHeight
read-only
videoDuration Duration
Get the VideoPlayerController.value.duration
read-only
videoPosition Duration
Get the VideoPlayerController.value.position
read-only

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes. [...]
inherited
dispose() Future<void>
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener and removeListener will throw after the object is disposed). [...]
override
exportVideo({required void onCompleted(File? file), String? name, String? outDir, String format = "mp4", double scale = 1.0, String? customInstruction, void onProgress(Statistics)?, VideoExportPreset preset = VideoExportPreset.none}) Future<void>
Export the video using this edition parameters and return a File. [...]
extractCover({required void onCompleted(File? file), String? name, String? outDir, String format = "jpg", double scale = 1.0, int quality = 100, void onProgress(Statistics)?}) Future<void>
Export this selected cover, or by default the first one, return an image File. [...]
generateCoverThumbnail({int timeMs = 0, int quality = 10}) Future<CoverData>
Generate cover data depending on milliseconds
generateDefaultCoverThumnail() → void
Generate cover at startTrim time in milliseconds
getMetaData({required void onCompleted(Map? metadata)}) Future<void>
Return metadata of the video file
initialize() Future<void>
Attempts to open the given File and load metadata about the video.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyListeners() → void
Call all the registered listeners. [...]
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes. [...]
inherited
rotate90Degrees([RotateDirection direction = RotateDirection.right]) → void
toString() String
A string representation of this object. [...]
inherited
updateCrop() → void
Update the minCrop and maxCrop
updateSelectedCover(CoverData selectedCover) → void
updateTrim(double min, double max) → void
Update minTrim and maxTrim. Arguments range are 0.0 to 1.0.

Operators

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