playUri method

  1. @override
Future<void> playUri({
  1. required String spotifyUri,
})
override

Plays the specified Spotify URI.

spotifyUri - The Spotify URI to play (e.g., 'spotify:track:xxx')

Implementation

@override
Future<void> playUri({required String spotifyUri}) async {
  try {
    await _channel.invokeMethod(_Methods.play, {'spotifyUri': spotifyUri});
  } catch (_) {}
}