topLevelVariableDeclaration abstract method

TopLevelVariableDeclaration topLevelVariableDeclaration(
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. VariableDeclarationList variableList,
  4. Token semicolon, {
  5. Token? externalKeyword,
})

Returns a newly created top-level variable declaration. Either or both of the comment and metadata can be null if the variable does not have the corresponding attribute.

Implementation

TopLevelVariableDeclaration topLevelVariableDeclaration(
    Comment? comment,
    List<Annotation>? metadata,
    VariableDeclarationList variableList,
    Token semicolon,
    {Token? externalKeyword});