ServiceMethod<Q, R> class

Definition of a gRPC service method.

Constructors

ServiceMethod(String name, Function handler, bool streamingRequest, bool streamingResponse, Q requestDeserializer(List<int> request), List<int> responseSerializer(R response))

Properties

handler Function
final
hashCode int
The hash code for this object.
no setterinherited
name String
final
requestDeserializer → Q Function(List<int> request)
final
responseSerializer List<int> Function(R response)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamingRequest bool
final
streamingResponse bool
final

Methods

createRequestStream(StreamSubscription incoming) StreamController<Q>
deserialize(List<int> data) → Q
handle(ServiceCall call, Stream<Q> requests) Stream<R>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(dynamic response) List<int>
toString() String
A string representation of this object.
inherited

Operators

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