DartMethod constructor
DartMethod({
- required String name,
- required ElementLocation location,
- required DartType returnType,
- List<
DartParameter> parameters = const [], - DartElementRef<
DartElement> ? parentRef, - MethodKind kind = MethodKind.REGULAR,
- bool isAbstract = false,
- bool isStatic = false,
- bool isTopLevel = false,
- List<
DartMetadata> metadata = const [],
Implementation
DartMethod({
required String name,
required ElementLocation location,
required this.returnType,
this.parameters = const [],
this.parentRef,
this.kind = MethodKind.REGULAR,
this.isAbstract = false,
this.isStatic = false,
bool isTopLevel = false,
List<DartMetadata> metadata = const [],
}) : super(
name: name,
location: location,
isTopLevel: isTopLevel,
metadata: metadata,
);