playTone method

  1. @override
Future<bool> playTone({
  1. required String digits,
  2. int? durationMs,
  3. double? samplingRate,
  4. double? volume,
})
override

Implementation

@override
Future<bool> playTone(
    {required String digits,
    int? durationMs,
    double? samplingRate,
    double? volume}) async {
  final Map<String, Object?> args = <String, dynamic>{
    "digits": digits,
    "samplingRate": samplingRate,
    "durationMs": durationMs,
    "volume": volume
  };
  return await methodChannel.invokeMethod('playTone', args);
}