🚟Environments

Classe para buscar variaveis que estão definidas no .env, utilizando o plugin dotenv.

import 'package:flutter_dotenv/flutter_dotenv.dart';

class Environments {
  static String get baseUrl => dotenv.env['BASE_URL'] ?? "";

  static String get authenticationEncryptionKey =>
      dotenv.env['ENCRYPTION_KEY'] ??
      ""; //create your own with => secure-random -l 16

  static String get authenticationIvKey =>
      dotenv.env['IV_KEY'] ?? ""; //create your own with => secure-random -l 16
}

Last updated