MethodChannelFlutterAudioToolkit class
An implementation of FlutterAudioToolkitPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterAudioToolkitPlatform
- MethodChannelFlutterAudioToolkit
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
convertAudio(
{required String inputPath, required String outputPath, required AudioFormat format, int bitRate = 128, int sampleRate = 44100, ProgressCallback? onProgress}) → Future< ConversionResult> -
Converts an audio file to the specified format
override
-
extractWaveform(
{required String inputPath, int samplesPerSecond = 100, ProgressCallback? onProgress}) → Future< WaveformData> -
Extracts waveform data from an audio file
override
-
getAudioInfo(
String inputPath) → Future< Map< String, dynamic> > -
Gets audio file information without conversion
override
-
getPlatformVersion(
) → Future< String?> -
override
-
isFormatSupported(
String inputPath) → Future< bool> -
Checks if the given audio format is supported for conversion
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
trimAudio(
{required String inputPath, required String outputPath, required int startTimeMs, required int endTimeMs, required AudioFormat format, int bitRate = 128, int sampleRate = 44100, ProgressCallback? onProgress}) → Future< ConversionResult> -
Trims an audio file to the specified time range
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited