Filmkit class abstract final

Native photo and video export: Media3 Transformer and Android graphics on Android, AVFoundation and Core Image on iOS.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

exportImage({required String input, required String output, EditSpec edit = const EditSpec(), int quality = 90, bool keepLocation = false}) → Future<ExportResult>
Exports the photo at input (JPEG, PNG, HEIC, WebP…) to a JPEG at output with the crop, maxDimension and LUT of edit (trim is ignored).
exportVideo({required String input, required String output, EditSpec edit = const EditSpec()}) → VideoExport
Exports input to output with the edits in edit.
getVideoFrame(String path, {Duration position = Duration.zero, int? maxDimension}) → Future<Image>
The frame of the video at path closest to position, as displayed (rotation applied), scaled down so that its longest side fits maxDimension if given. Colors are the decoded values, as a video player shows them: the input of LutFilter and of the export. Dispose the image when done.
getVideoInfo(String path) → Future<VideoInfo>
Reads the displayed size, duration, audio and HDR flags of the video at path.