Method class
Represents a method on an Api.
Constructors
-
Method({required String name, required TypeDeclaration returnType, required List<
NamedType> arguments, bool isAsynchronous = false, int? offset, String objcSelector = '', String swiftFunction = '', TaskQueueType taskQueueType = TaskQueueType.serial, List<String> documentationComments = const <String>[]}) - Parametric constructor for Method.
Properties
-
arguments
↔ List<
NamedType> -
The arguments passed into the Method.
getter/setter pair
-
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
- 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
- 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