Created
May 31, 2015 17:56
-
-
Save matanlurey/b82c4779ea2c8a4dfea2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library reflection_test; | |
import 'dart:mirrors'; | |
List someFunction(String string, List list, Map map) {} | |
void main() { | |
ClosureMirror mirror = reflect(someFunction); | |
// Outputs: (String, List, Map) | |
print(mirror.function.parameters.map((p) => p.type.reflectedType)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment