jsx 1.0.0 jsx: ^1.0.0 copied to clipboard
JavaScriptCore for Flutter. The plugin provides the ability to evaluate JavaScript programs from within dart.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add jsx
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
jsx: ^1.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:jsx/js.dart';
import 'package:jsx/js_bindings.dart';
import 'package:jsx/js_vm.dart';