DartMethod constructor

DartMethod({
  1. required String name,
  2. required ElementLocation location,
  3. required DartType returnType,
  4. List<DartParameter> parameters = const [],
  5. DartElementRef<DartElement>? parentRef,
  6. MethodKind kind = MethodKind.REGULAR,
  7. bool isAbstract = false,
  8. bool isStatic = false,
  9. bool isTopLevel = false,
  10. 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,
      );