Search posts, tags, users, and pages
Load and access your environment variables securely and efficiently in your Flutter applications.
Mateo Ramirez Rubio
@MateoRamirezR · Medellín, Antioquia, COL
Markdown supported · ⌘↵ to post
Aman
final String baseUrl = dotenv.env['BASE_URL'] ?? 'default_url'; final String apiKey = dotenv.env['API_KEY'] ?? 'default_key';
Here in null check why default URL and key we are hiding it from outside world?
Aman
final String baseUrl = dotenv.env['BASE_URL'] ?? 'default_url'; final String apiKey = dotenv.env['API_KEY'] ?? 'default_key';
Here in null check why default URL and key we are hiding it from outside world?