dart_eval icon indicating copy to clipboard operation
dart_eval copied to clipboard

Extensible Dart interpreter for Dart with full interop

Results 51 dart_eval issues
Sort by recently updated
recently updated
newest added

test case: ``` import 'package:dart_eval/dart_eval.dart'; import 'package:test/test.dart'; void main() { group('tests', () { late Compiler compiler; setUp(() { compiler = Compiler(); }); test('simple test', () { final program = compiler.compile({...

I want to write a wrapper for riverpod (https://pub-web.flutter-io.cn/packages/riverpod) But occur many questions. it is possible support generics type? If dart eval support generics type will be better(many dart package...

test cast ``` import 'package:dart_eval/dart_eval.dart'; import 'package:test/test.dart'; import 'bridge_lib.dart'; void main() { group('Bridge tests', () { late Compiler compiler; setUp(() { compiler = Compiler(); }); test('Using a bridged enum', ()...

It is complicated to add? If not could you tell me how should I go on about it?

enhancement

Let me explain when i bridge a function like this ``` String buildString(void Function(StringBuffer it) action) { final it = StringBuffer(); action(it); return it.toString(); } static const buildString = BridgeFunctionDeclaration(...

add a test in 'Bridge tests' at bridge_test.dart. ``` test('Using a subclassed bridge class with function', () { compiler.defineBridgeClasses([$TestClass.$declaration]); final program = compiler.compile({ 'example': { 'main.dart': ''' import 'package:bridge_lib/bridge_lib.dart'; class...

test case: ``` import 'package:dart_eval/dart_eval.dart'; import 'package:test/test.dart'; void main() { group('local function test', () { test('local function function', () { final program = ''' int main() { int value =...

@ethanblake4 Could you please have a look at this example? I've tried to reconstruct the Book bridge example from the `README.md` file, but get the following error: `dart_eval runtime exception:...

Test case: ``` import 'package:dart_eval/dart_eval.dart'; import 'package:test/test.dart'; import 'wrapper_lib.dart'; void main() { group('wrapper tests', () { late Compiler compiler; setUp(() { compiler = Compiler(); }); test('Using a wrapper class', ()...

Test case: ``` import 'package:dart_eval/dart_eval.dart'; import 'package:test/test.dart'; void main() { group('generic types tests', () { test('test generic types method', () { final program = ''' int main () { return...