extensionDeclaration abstract method
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,
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});