FlutterF2fSoundPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- FlutterF2fSoundPlatform
- Implementers
Constructors
- FlutterF2fSoundPlatform()
- Constructs a FlutterF2fSoundPlatform.
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
-
getCurrentPosition(
) → Future< double> - Get the current playback position in seconds
-
getDuration(
String path) → Future< double> - Get the duration of the audio file in seconds
-
getPlatformVersion(
) → Future< String?> -
isPlaying(
) → Future< bool> - Check if audio is currently playing
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< void> - Pause the currently playing audio
-
play(
{required String path, double volume = 1.0, bool loop = false}) → Future< void> - Play audio from the given path
-
resume(
) → Future< void> - Resume playback of paused audio
-
setVolume(
double volume) → Future< void> - Set the volume of the currently playing audio (0.0 to 1.0)
-
startPlaybackStream(
String path) → Stream< List< int> > -
startRecording(
) → Stream< List< int> > -
startSystemSoundCapture(
) → Stream< List< int> > -
stop(
) → Future< void> - Stop the currently playing audio
-
stopRecording(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterF2fSoundPlatform
-
The default instance of FlutterF2fSoundPlatform to use.
getter/setter pair