Using the dart:mirrors library how can I find all corresponding getters and setters for any class mirror.
class Person {
String _name;
Person(this._name);
String get name => _name;
set name (String value) {_name = value;}
}
In this example I'd like to find "name" setter and getter methods to group them without any prior knowledge about the class.
Is there a way to do this properly? Or should I hack my way through using class mirror's instanceMembers, perhaps converting setters symbols to strings or something like that?