Method class
Method represents a method of an API interface.
Constructors
-
Method({Input<
String> ? name, Input<List< ? options, Input<Option> >bool> ? requestStreaming, Input<String> ? requestTypeUrl, Input<bool> ? responseStreaming, Input<String> ? responseTypeUrl, Input<MethodSyntax> ? syntax}) -
Creates a new Method.
nameThe simple name of this method.optionsAny metadata attached to the method.requestStreamingIf true, the request is streamed.requestTypeUrlA URL of the input message type.responseStreamingIf true, the response is streamed.responseTypeUrlThe URL of the output message type.syntaxThe source syntax of this method.const -
Method.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
name
→ Input<
String> ? -
The simple name of this method.
final
-
options
→ Input<
List< ?Option> > -
Any metadata attached to the method.
final
-
requestStreaming
→ Input<
bool> ? -
If true, the request is streamed.
final
-
requestTypeUrl
→ Input<
String> ? -
A URL of the input message type.
final
-
responseStreaming
→ Input<
bool> ? -
If true, the response is streamed.
final
-
responseTypeUrl
→ Input<
String> ? -
The URL of the output message type.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
syntax
→ Input<
MethodSyntax> ? -
The source syntax of this method.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited