handleMethodCall method

Future handleMethodCall(
  1. MethodCall call
)

Implementation

Future<dynamic> handleMethodCall(MethodCall call) async {
  switch (call.method) {
    case 'alert':
      final message = _getMessage(call.arguments);
      return _alert(message);
    case 'confirm':
      final message = _getMessage(call.arguments);
      return _confirm(message);
    default:
      throw PlatformException(
        code: 'Unimplemented',
        details: "native_dialog for web doesn't implement '${call.method}'",
      );
  }
}