Method constructor

Method({
  1. required String name,
  2. required TypeDeclaration returnType,
  3. required List<Parameter> parameters,
  4. required ApiLocation location,
  5. bool isRequired = true,
  6. bool isAsynchronous = false,
  7. bool isStatic = false,
  8. int? offset,
  9. String objcSelector = '',
  10. String swiftFunction = '',
  11. TaskQueueType taskQueueType = TaskQueueType.serial,
  12. List<String> documentationComments = const <String>[],
})

Parametric constructor for Method.

Implementation

Method({
  required this.name,
  required this.returnType,
  required this.parameters,
  required this.location,
  this.isRequired = true,
  this.isAsynchronous = false,
  this.isStatic = false,
  this.offset,
  this.objcSelector = '',
  this.swiftFunction = '',
  this.taskQueueType = TaskQueueType.serial,
  this.documentationComments = const <String>[],
});