mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
feat: add flutter_js dependency and implement JS runtime service
This commit is contained in:
11
lib/services/flutter_js_service.dart
Normal file
11
lib/services/flutter_js_service.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:flutter_js/flutter_js.dart';
|
||||
|
||||
late JavascriptRuntime jsRuntime;
|
||||
|
||||
void initializeJsRuntime() {
|
||||
jsRuntime = getJavascriptRuntime();
|
||||
}
|
||||
|
||||
void disposeJsRuntime() {
|
||||
jsRuntime.dispose();
|
||||
}
|
||||
Reference in New Issue
Block a user