AudioTrimmer class

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

Constructors

AudioTrimmer()

Properties

audioPlayer → AudioPlayer?
no setter
currentAudioFile 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

Methods

audioPlaybackControl({required double startValue, required double endValue}) Future<bool>
For getting the audio controller state, to know whether the audio is playing or paused currently.
dispose() → void
Clean up
loadAudio({required File audioFile}) Future<void>
Loads a audio using the path provided.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveTrimmedAudio({required double startValue, required double endValue, required dynamic onSave(String? outputPath), bool applyAudioEncoding = false, FileFormat? outputFormat, String? ffmpegCommand, String? customAudioFormat, int? fpsGIF, int? scaleGIF, String? audioFolderName, String? audioFileName, StorageDir storageDir = StorageDir.temporaryDirectory}) Future<void>
Saves the trimmed audio to file system.
toString() String
A string representation of this object.
inherited

Operators

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