initPush function

Future initPush({
  1. ENV env = ENV.prod,
  2. Wallet? wallet,
  3. bool showHttpLog = false,
})

Implementation

Future initPush({
  ENV env = ENV.prod,
  Wallet? wallet,
  bool showHttpLog = false,
}) async {
  providerContainer.read(envProvider.notifier).setEnv(env);
  providerContainer.read(showHttpLogProvider.notifier).setEnv(showHttpLog);

  if (wallet != null) {
    await providerContainer
        .read(userEthWalletProvider.notifier)
        .setCurrentUserEthWallet(wallet);
  }
}