setFlavorConfig static method

dynamic setFlavorConfig({
  1. required String baseUrl,
  2. required String baseWebUrl,
  3. bool isRelease = false,
  4. String? endpoint,
  5. bool enablePrintLog = false,
})

baseUrl, baseWebUrl, endpoint flavor, logging user set this config in main()

Implementation

static setFlavorConfig(
    {required String baseUrl,
    required String baseWebUrl,
    bool isRelease = false,
    String? endpoint,
    bool enablePrintLog = false}) {
  AppConfig.baseUrl = baseUrl;
  AppConfig.baseWebUrl = baseWebUrl;
  AppConfig._isRelease = isRelease;
  AppConfig._endpoint = endpoint ?? "";
  AppConfig._enablePrintLog = enablePrintLog;
}