TypeAnnotation constructor Null safety

TypeAnnotation(
  1. 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);
}