handleMethodCall method

Future handleMethodCall(
  1. MethodCall call
)

Implementation

Future<dynamic> handleMethodCall(MethodCall call) async {
  final args = call.arguments;
  switch (call.method) {
    case 'setConfiguration':
      _configuration = args[0];
      _channel.invokeMethod('onConfigurationChanged', [_configuration]);
      break;
    case 'getConfiguration':
      return _configuration;
    default:
      throw PlatformException(
        code: 'Unimplemented',
        details:
            'audio_session for web doesn\'t implement \'${call.method}\'',
      );
  }
}