TypeAnnotation.fromParts constructor Null safety

TypeAnnotation.fromParts(
  1. List<Object> parts
)

Creates a TypeAnnotation from parts, which must be of type Code List<Code> or String.

When a List<Code> is encountered they are joined by a comma.

Implementation

factory TypeAnnotation.fromParts(List<Object> parts) =>
    TypeAnnotation(_combineParts(parts));