MethodStreamConnector class
The MethodStreamConnector hooks up a method with its name and implementation. The method communicates with the client using a websocket connection. Enabling support for streaming return values or parameters.
- Inheritance
-
- Object
- EndpointMethodConnector
- MethodStreamConnector
Constructors
-
MethodStreamConnector({required String name, required Map<
String, ParameterDescription> params, required MethodStreamReturnType returnType, required Map<String, StreamParameterDescription> streamParams, required MethodStream call}) - Creates a new MethodStreamConnector.
Properties
- call → MethodStream
-
A function that performs a call to the named method.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the method.
finalinherited
-
params
→ Map<
String, ParameterDescription> -
List of parameters used by the method.
finalinherited
- returnType → MethodStreamReturnType
-
The type of return value from the method.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
streamParams
→ Map<
String, StreamParameterDescription> -
List of parameter streams used by the method.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited