env.dart 529 B

1234567891011121314151617
  1. import 'package:fis_common/env/env.dart';
  2. import 'package:fis_jsonrpc/services/platform.dart';
  3. typedef VDHSPlatformServiceGetter = PlatformService Function();
  4. class VidDataHostEnv {
  5. static VDHSPlatformServiceGetter? _platformGetter;
  6. static bool get isShell => FPlatform.isWindows || FPlatform.isMacOS;
  7. // static bool get isShell => false;
  8. static VDHSPlatformServiceGetter? get platformGetter => _platformGetter;
  9. static void setPlatformGetter(VDHSPlatformServiceGetter getter) {
  10. _platformGetter = getter;
  11. }
  12. }