load static method
void
load(
{ - String? customRedirectUrl,
})
Implementation
static void load({String? customRedirectUrl}) {
const v = String.fromEnvironment('Flavor');
switch (v) {
case 'local':
flavor = Flavor.local;
baseUrl = 'http://localhost:4000/';
redirectUrl = customRedirectUrl ?? 'http://localhost:62917';
socketUrl = 'wss://socket-dev.valuenable.in';
break;
case 'dev':
flavor = Flavor.dev;
baseUrl = 'https://api-dev.valuenable.in/lamf/';
redirectUrl =
customRedirectUrl ??
((kIsWeb && kDebugMode)
? 'http://localhost:62917'
: 'https://dev-las.sliqfin.com');
socketUrl = 'wss://socket-dev.valuenable.in';
break;
case 'uat':
flavor = Flavor.uat;
baseUrl = 'https://api-uat.valuenable.in/lamf/';
redirectUrl = customRedirectUrl ?? 'https://uat-las.sliqfin.com';
socketUrl = 'wss://socket-uat.valuenable.in';
break;
default:
flavor = Flavor.prod;
baseUrl = 'https://api.valuenable.in/lamf/';
redirectUrl = customRedirectUrl ?? 'https://las.sliqfin.com';
socketUrl = 'wss://socket-prod.valuenable.in';
break;
}
}