getDashboardUrl function

String getDashboardUrl(
  1. BuildEnv? buildEnv
)

Implementation

String getDashboardUrl(BuildEnv? buildEnv) {
  const String walletAccountConstant = "wallet/account";
  switch (buildEnv) {
    case BuildEnv.staging:
      return "https://staging-account.web3auth.io/$walletAccountConstant";
    case BuildEnv.testing:
      return "https://develop-account.web3auth.io/$walletAccountConstant";
    case BuildEnv.production:
    default:
      return "https://account.web3auth.io/$walletAccountConstant";
  }
}