Dartlang tutorial introduces package:meta https://www.dartlang.org/docs/dart-up-and-running/contents/ch02.html#ch02-metadata
DartEditor recognise the metadata as shown at above tutorial. The tutorial also explains how to create custom metadata and retrieve it. But there is no code sample on how to retrieve it.
Through reading some implementations such as @published metadata in Polymer.dart, I find the way. https://www.dartlang.org/articles/reflection-with-mirrors/ https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart-mirrors#id_reflect
Here is the sample code.