TypeAnnotation constructor Null safety
- String content
Implementation
factory TypeAnnotation(String content) {
var typeAnnotation = _withParserAndToken(
content,
// TODO: exact implications of passing `false` here?
(parser, token) => parser.parseTypeAnnotation(false));
return TypeAnnotation._(typeAnnotation);
}