google / reflectable.dart

Reflectable is a Dart library that allows programmers to eliminate certain usages of dynamic reflection by specialization of reflective code to an equivalent implementation using only static techniques. The use of dynamic reflection is constrained in order to ensure that the specialized code can be generated and will have a reasonable size.

Home Page:https://pub.dev/packages/reflectable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to calling a global function with reflectable?

RicoLiu opened this issue · comments

eg:

jsonDecode('{"name": "test"}');

How to call jsonDecode with reflectable?

Here is an example showing how a top-level function can be called reflectively.

Here is an example showing how a top-level function can be called reflectively.

thank you.