play method

  1. @override
Future<void> play(
  1. String uri
)
override

invokes the play method on the native platform, which plays the sound at uri. Any currently playing sound is stopped first.

Implementation

@override
Future<void> play(String uri) =>
    methodChannel.invokeMethod<void>('play', {'uri': uri});