Method class

Represents a method on an Api.

Inheritance
Implementers

Constructors

Method({required String name, required TypeDeclaration returnType, required List<Parameter> parameters, required ApiLocation location, bool isRequired = true, bool isAsynchronous = false, bool isStatic = false, int? offset, String objcSelector = '', String swiftFunction = '', TaskQueueType taskQueueType = TaskQueueType.serial, List<String> documentationComments = const <String>[]})
Parametric constructor for Method.

Properties

documentationComments List<String>
List of documentation comments, separated by line.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isAsynchronous bool
Whether the receiver of this method is expected to return synchronously or not.
getter/setter pair
isRequired bool
Whether this method is required to be implemented.
getter/setter pair
isStatic bool
Whether this is a static method of a ProxyApi.
getter/setter pair
location ApiLocation
Where the implementation of this method is located, host or Flutter.
getter/setter pair
name String
The name of the method.
getter/setter pair
objcSelector String
An override for the generated objc selector (ex. "divideNumber:by:").
getter/setter pair
offset int?
The offset in the source file where the field appears.
getter/setter pair
parameters List<Parameter>
The parameters passed into the Method.
getter/setter pair
returnType TypeDeclaration
The data-type of the return value.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
swiftFunction String
An override for the generated swift function signature (ex. "divideNumber(_:by:)").
getter/setter pair
taskQueueType TaskQueueType
Specifies how handlers are dispatched with respect to threading.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited