stopPlayer method

Future<bool> stopPlayer(
  1. String key
)

platform call to stop player

Implementation

Future<bool> stopPlayer(String key) async {
  var result = await _methodChannel
      .invokeMethod(Constants.stopPlayer, {Constants.playerKey: key});
  return result ?? false;
}