initialize method

Future initialize({
  1. String senha = "",
  2. required String aplicativo,
  3. int versaoPacific = 1,
  4. bool gateway = false,
  5. bool loginPorCpfCnpj = false,
  6. bool campoMotorista = false,
  7. bool useCnpj = false,
  8. bool rh = false,
  9. bool useFirebase = true,
  10. bool usePacificUrl = false,
  11. String chaveDev = "",
})

Implementation

Future initialize(
    {String senha = "",
    required String aplicativo,
    int versaoPacific = 1,
    bool gateway = false,
    bool loginPorCpfCnpj = false,
    bool campoMotorista = false,
    bool useCnpj = false,
    bool rh = false,
    bool useFirebase = true,
    bool usePacificUrl = false,
    String chaveDev = ""}) async {
  await _handler.setUseCnpj(useCnpj);
  await _handler.setVersaoProgramaPacific(versaoPacific);
  await _handler.setNomeAplicativo(aplicativo);
  await _handler.setPasswordFirebase(senha);
  await _handler.setGateway(gateway);
  await _handler.setLogin(loginPorCpfCnpj);
  await _handler.setCampoMotorista(campoMotorista);
  await _handler.setUseFirebase(useFirebase);
  await _handler.setUsePacificUrl(usePacificUrl);
  await _handler.setRH(rh);
  await _handler.setChaveDev(chaveDev);
  if (useFirebase) {
    await Firebase.initializeApp();
  }
}