MethodChannelSoundplayer class

An implementation of SoundplayerPlatform that uses method channels.

Inheritance

Constructors

MethodChannelSoundplayer()

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

getPlatformVersion() Future<String?>
override
initPlayer({int numStreams = 2}) Future<void>
load({required String path}) Future<int>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause({required int soundId}) Future<void>
play({required int soundId}) Future<int>
release() Future<void>
stop({required int streamId}) Future<void>
toString() String
A string representation of this object.
inherited
unload({required int soundId}) Future<void>

Operators

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