initialize method
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 = "",
})
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();
}
}