platform_model.dart 513 B

1234567891011121314151617
  1. import 'native_model.dart' if (dart.library.html) 'web_model.dart';
  2. import 'package:flutter_hbb/generated_bridge.dart'
  3. if (dart.library.html) 'package:flutter_hbb/web/bridge.dart';
  4. final platformFFI = PlatformFFI.instance;
  5. final localeName = PlatformFFI.localeName;
  6. RustdeskImpl get bind => platformFFI.ffiBind;
  7. String ffiGetByName(String name, [String arg = '']) {
  8. return PlatformFFI.getByName(name, arg);
  9. }
  10. void ffiSetByName(String name, [String value = '']) {
  11. PlatformFFI.setByName(name, value);
  12. }