importDirective abstract method
ImportDirective
importDirective(
- Comment? comment,
- List<
Annotation> ? metadata, - Token keyword,
- StringLiteral libraryUri,
- List<
Configuration> ? configurations, - Token? deferredKeyword,
- Token? asKeyword,
- SimpleIdentifier? prefix,
- List<
Combinator> ? combinators, - Token semicolon,
Returns 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
ImportDirective importDirective(
Comment? comment,
List<Annotation>? metadata,
Token keyword,
StringLiteral libraryUri,
List<Configuration>? configurations,
Token? deferredKeyword,
Token? asKeyword,
SimpleIdentifier? prefix,
List<Combinator>? combinators,
Token semicolon);