isDartAnnotation function
This is a very simple way of checking for an annotation it simply checks for an "@" followed by an identifier It cannot be considered proof safe, but in 99% of cases it should work
If you do not need a sophisticated selection it can be useful scanning a dart source
Implementation
bool isDartAnnotation(String source, int startPosition) =>
source.startsWith(dartAnnotationRegExp, startPosition);