You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have a simple but long js code, how can I run it in the most minimal and fastest way, can you give an example without mixing only dart and flutter code?
@lavara123 This is the most basic example, using only Dart.
test('run script', () {
const script ='''function add(a, b) { return a + b;}add(1, 2);''';
final _qjs =FlutterQjs();
final result = _qjs.evaluate(script);
expect(result, 3);
});
Let's say I have a simple but long js code, how can I run it in the most minimal and fastest way, can you give an example without mixing only dart and flutter code?
@ekibun
The text was updated successfully, but these errors were encountered: