Declaration.fromParts constructor Null safety

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

Creates a Declaration 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 Declaration.fromParts(List<Object> parts) =>
    Declaration(_combineParts(parts));