VideoEditorClip class
Constructors
-
VideoEditorClip({required String id, required File file, required bool isImage, Duration duration = Duration.zero, Duration? startTime, Duration? endTime, double volume = 1.0, double playbackSpeed = 1.0, File? convertedVideoFile, File? proxyVideoFile, List<
File> thumbnails = const [], int editVersion = 0, VideoEditorEffect effect = VideoEditorEffect.none, VideoFillMode fillMode = VideoFillMode.fit, double cropScale = 1.0, double cropX = 0.0, double cropY = 0.0, double width = 1080, double height = 1920, Color backgroundColor = VideoEditorColors.background, bool hasAudio = true, ClipTransition transitionIn = ClipTransition.none, AudioCleanup audioCleanup = AudioCleanup.none}) -
VideoEditorClip.fromJson(Map<
String, dynamic> json) -
factory
Properties
- audioCleanup ↔ AudioCleanup
-
Noise reduction / voice clean-up of the clip's own sound.
getter/setter pair
- backgroundColor ↔ Color
-
getter/setter pair
- convertedVideoFile ↔ File?
-
getter/setter pair
- cropScale ↔ double
-
Manual crop/pan values
getter/setter pair
- cropX ↔ double
-
getter/setter pair
- cropY ↔ double
-
getter/setter pair
- duration ↔ Duration
-
getter/setter pair
- editVersion ↔ int
-
getter/setter pair
- effect ↔ VideoEditorEffect
-
getter/setter pair
- effectiveDuration → Duration
-
no setter
- endTime ↔ Duration?
-
getter/setter pair
- file → File
-
final
- fillMode ↔ VideoFillMode
-
getter/setter pair
- hasAudio ↔ bool
-
Whether the source file carries an audio stream. Clips without one get
silence in the render so the audio and video timelines stay aligned.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double
-
getter/setter pair
- id → String
-
final
- imagePath → String
-
no setter
- isImage → bool
-
final
- isVideo → bool
-
no setter
- name → String
-
no setter
- playbackSpeed ↔ double
-
getter/setter pair
- proxyVideoFile ↔ File?
-
getter/setter pair
- resolution → Size
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime ↔ Duration?
-
getter/setter pair
-
thumbnails
↔ List<
File> -
getter/setter pair
- transitionIn ↔ ClipTransition
-
Transition into this clip from the previous one.
getter/setter pair
- videoPath → String
-
no setter
- volume ↔ double
-
getter/setter pair
- width ↔ double
-
Display size of the media (rotation already applied).
getter/setter pair
Methods
-
clearConvertedImageVideo(
) → void -
copy(
) → VideoEditorClip -
copyWith(
{String? id, File? file, bool? isImage, Duration? duration, Duration? startTime, Duration? endTime, double? volume, double? playbackSpeed, File? convertedVideoFile, bool clearConvertedVideoFile = false, File? proxyVideoFile, List< File> ? thumbnails, int? editVersion, VideoEditorEffect? effect, VideoFillMode? fillMode, double? cropScale, double? cropX, double? cropY, double? width, double? height, Color? backgroundColor, bool? hasAudio, ClipTransition? transitionIn, AudioCleanup? audioCleanup}) → VideoEditorClip -
markEdited(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
-
toVideoSegment(
) → VideoSegment
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited