initialize method

void initialize()

Implementation

void initialize() {
  var callResult;
  _channel.setMethodCallHandler((call) {
    print(call.method);
    switch (call.method) {
      case 'onGeoQRegisterSuccess':
        onGeoQRegisterSuccess(call.arguments);
        break;
      case 'onGeoQRegisterWarning':
        onGeoQRegisterWarning(call.arguments);
        break;
      case 'onGeoQRegisterError':
        onGeoQRegisterError(call.arguments);
        break;

      case 'onGeoQGetUserPermissionSuccess':
        onGeoQGetUserPermissionSuccess(call.arguments);
        break;
      case 'onGeoQGetUserPermissionError':
        onGeoQGetUserPermissionError(call.arguments);
        break;
      case 'onGeoQSetUserPermissionSuccess':
        onGeoQSetUserPermissionSuccess(call.arguments);
        break;
      case 'onGeoQSetUserPermissionError':
        onGeoQSetUserPermissionError(call.arguments);
        break;
      case 'onGeoQUpdateExtraDataSuccess':
        onGeoQUpdateExtraDataSuccess(call.arguments);
        break;
      case 'onGeoQUpdateExtraDataError':
        onGeoQUpdateExtraDataError(call.arguments);
        break;
      case 'locationChangeEvent':
        locationChangeEvent(
            call.arguments['latitude'], call.arguments['longitude']);
        break;
      case 'locationChangeEvent':
        dataEvent(call.arguments['source'], call.arguments['value']);
        break;
      case 'pushEvent':
        pushEvent(call.arguments);
        break;
      default:
        print(call.method + 'Not found');
    }
    return callResult;
  });
}