extensionDeclaration abstract method

ExtensionDeclaration extensionDeclaration({
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. required Token extensionKeyword,
  4. Token? typeKeyword,
  5. SimpleIdentifier? name,
  6. TypeParameterList? typeParameters,
  7. required Token onKeyword,
  8. required TypeAnnotation extendedType,
  9. required Token leftBracket,
  10. required List<ClassMember> members,
  11. required Token rightBracket,
})

Return a newly created extension declaration. The list of typeParameters can be null if there are no type parameters.

Implementation

ExtensionDeclaration extensionDeclaration(
    {Comment? comment,
    List<Annotation>? metadata,
    required Token extensionKeyword,
    Token? typeKeyword,
    SimpleIdentifier? name,
    TypeParameterList? typeParameters,
    required Token onKeyword,
    required TypeAnnotation extendedType,
    required Token leftBracket,
    required List<ClassMember> members,
    required Token rightBracket});