13 lines
276 B
Dart
13 lines
276 B
Dart
|
|
class AppFlavor {
|
||
|
|
static const String sky = 'sky';
|
||
|
|
static const String xhj = 'xhj';
|
||
|
|
static const String current = String.fromEnvironment(
|
||
|
|
'FLAVOR',
|
||
|
|
defaultValue: sky,
|
||
|
|
);
|
||
|
|
|
||
|
|
static bool get isSky => current == sky;
|
||
|
|
|
||
|
|
static bool get isXhj => current == xhj;
|
||
|
|
}
|