ImportDirectiveImpl constructor
ImportDirectiveImpl({
- required CommentImpl? comment,
- required List<
AnnotationImpl> ? metadata, - required Token importKeyword,
- required StringLiteralImpl uri,
- required List<
ConfigurationImpl> ? configurations, - required Token? deferredKeyword,
- required Token? asKeyword,
- required SimpleIdentifierImpl? prefix,
- required List<
CombinatorImpl> ? combinators, - required Token semicolon,
Initialize a newly created import directive. Either or both of the
comment
and metadata
can be null
if the function does not have the
corresponding attribute. The deferredKeyword can be null
if the import
is not deferred. The asKeyword and prefix
can be null
if the import
does not specify a prefix. The list of combinators
can be null
if
there are no combinators.
Implementation
ImportDirectiveImpl({
required super.comment,
required super.metadata,
required this.importKeyword,
required super.uri,
required super.configurations,
required this.deferredKeyword,
required this.asKeyword,
required SimpleIdentifierImpl? prefix,
required super.combinators,
required super.semicolon,
}) : _prefix = prefix {
_becomeParentOf(_prefix);
}