chooseEnv static method

void chooseEnv(
  1. String value
)

Implementation

static void chooseEnv(String value) {
  switch(value) {
    case 'dev':
      Constants().domain = 'https://dev.hainong.vn';
      Constants().baseUrl = 'https://dev.panel.hainong.vn';
      Constants().baseUrlImage = 'https://dev.panel.hainong.vn';
      Constants().baseUrlIPortal = 'https://dev.id.hainong.vn';
      break;
    case 'staging':
      Constants().domain = 'https://staging.hainong.vn';
      Constants().baseUrl = 'https://staging.panel.hainong.vn';
      Constants().baseUrlImage = 'https://staging.panel.hainong.vn';
      Constants().baseUrlIPortal = 'https://staging.id.hainong.vn';
      break;
    default:
      Constants().domain = 'https://beta.hainong.vn';
      Constants().baseUrl = 'https://panel.hainong.vn';
      Constants().baseUrlImage = 'https://panel.hainong.vn';
      Constants().baseUrlIPortal = 'https://id.hainong.vn';
  }
}