handleMethodCall method
handleMethodCall processes calls for the platform
Implementation
Future<dynamic> handleMethodCall(MethodCall call) async {
switch (call.method) {
case 'playTone':
final String digits = call.arguments['digits'];
final int? durationMs = call.arguments['durationMs'];
return _playTone(digits, durationMs);
default:
throw PlatformException(
code: 'Unimplemented',
details: "The flutter dtmf plugin for web doesn't implement "
"the method '${call.method}'");
}
}