Skip to content

Instantly share code, notes, and snippets.

@matanlurey
Created May 31, 2015 17:56
Show Gist options
  • Save matanlurey/b82c4779ea2c8a4dfea2 to your computer and use it in GitHub Desktop.
Save matanlurey/b82c4779ea2c8a4dfea2 to your computer and use it in GitHub Desktop.
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