env.dart 249 B

1234567891011121314151617
  1. bool get kIsLab => LabEnv().kIsLab;
  2. class LabEnv {
  3. static final LabEnv _instance = LabEnv._internal();
  4. factory LabEnv() {
  5. return _instance;
  6. }
  7. LabEnv._internal();
  8. bool kIsLab = false;
  9. void setLabFlag() {
  10. kIsLab = true;
  11. }
  12. }