mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-27 03:07:26 +01:00
player: Add stop method.
This commit is contained in:
parent
92828849f9
commit
be1a41a90e
2 changed files with 10 additions and 0 deletions
|
|
@ -40,4 +40,9 @@ class MusicusPlayer {
|
|||
Future<void> pause() async {
|
||||
await _channel.invokeMethod('pause');
|
||||
}
|
||||
|
||||
/// Stop the player.
|
||||
Future<void> stop() async {
|
||||
await _channel.invokeMethod('stop');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue