rootEnvironment property
RootEnvironment
rootEnvironment
Returns Staging environment if the API_KEY is null Returns Production environment if the API_KEY is set in .env Used by Onboarding in the templates
Implementation
static RootEnvironment get rootEnvironment => (appApiKey == null)
? RootEnvironment.Staging
: RootEnvironment.Production;