importDirective abstract method

ImportDirective importDirective(
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token keyword,
  4. StringLiteral libraryUri,
  5. List<Configuration>? configurations,
  6. Token? deferredKeyword,
  7. Token? asKeyword,
  8. SimpleIdentifier? prefix,
  9. List<Combinator>? combinators,
  10. 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);