AvandaStream class
Constructors
-
AvandaStream({required Stream<
Response> stream, required StreamSink<String> wsSink, required WSController controller})
Properties
- closed ↔ bool
-
getter/setter pair
- controller ↔ WSController
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
↔ Stream<
Response> -
getter/setter pair
-
wsSink
↔ StreamSink<
String> -
getter/setter pair
Methods
-
close(
) → Future< AvandaStream> -
listen(
void onData(Response event)) → StreamSubscription< Response> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onClosed(
dynamic onClosed([int? code])?) → Future< AvandaStream> -
onError(
Function? onError) → Future< AvandaStream> -
onServerClosed(
dynamic onClosed(int? code)?) → Future< AvandaStream> -
send(
Map< String, dynamic> data) → Future<AvandaStream> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited