setRate method

Future<bool> setRate(
  1. double rate
)

Sets playback rate for this player. Doesn't throw Exception. Returns false if it couldn't set the rate.

Default to 1.0

Implementation

Future<bool> setRate(double rate) async {
  final result =
      await AudioWaveformsInterface.instance.setRate(rate, playerKey);
  return result;
}