I'm trying to list the methods of a class, but neither reflectClass() nor reflectType() return anything useful. Has anyone done this already? This is ...
I'm trying to list the methods of a class, but neither reflectClass() nor reflectType() return anything useful. Has anyone done this already? This is ...
I'm trying to use dart's mirror API to dynamically invoke a function. How can I obtain the result that's returned from the doWork method when invokin ...
I found this answer, but this is not working because this is road syntax. I want to check if there is a function with the same name as the hash attrib ...
I would like to perform runtime subtype checking in Dart without using dart:mirrors. What I mean by this is that given two types A and B, either as v ...
Is there a way to reflect specific library properties (like the library name) in Dart? How do you get the library object reference? ...
I'm struggling with how to invoke a top level function in dart. I'd like to be able to annotate a function with @Route, find all the Route annotations ...
I want to invoke functions of a class by their names inside a string. I know my best option are Mirrors. It works fine, I can call the function tes ...
i read a bit about dart mirrors but I did not figure out how to listen to method invocation using dart reflection. Use Case: Buttons in Flutter can ...
Very new to Flutter and Dart, so pardon me for the ill-phrased question. This is a generic code that I have: The current output is Error!. Instea ...
I've got the following code in a console application: import 'dart:mirrors'; void main() { final foo = Foo(); final mirror = reflect(foo); fin ...
I am using the reflectable library to reflect on types from imported packages (like analysis_server_client or flutter). I can reflect on types that ha ...
Say I have a class: now I have a string variable with value of "threesixty": how can I get the value of the threesixty in Icons class by the fie ...
I am experimenting with metadata. In this document : https://www.dartlang.org/guides/language/language-tour#metadata It is said that: Metadata ...
I want to update my Object by adding a more key-value pair. after initializing the Object I want to add one more key and value. Is there any way to ...
In the mirrors.dart source, you can find this: However that class isn't used anywhere else. How could we get use of that functionality? I would lik ...
I am trying to get all the subclasses of a given class following this post Find all subclasses in dart like this: But I am getting the following er ...
I need to access the type of DeclarationMirror. In the DeclarationMirror public API I can't see any method or property to access the type, but in Dart ...
Here's the simplest example. I can't find a way to just get a list of all the mixins that were applied to MyClass ...
I have fairly significant application written with Dart and Polymer which uses reflection in a factory method and runs fairly well in Dartium. The fac ...
I'm trying to create a simple Angular 2 + Dart application where I'll make HTTP calls to a remote API. I'm following the angular.io tutorial for Dart ...