ClientSocket class abstract

Constructors

ClientSocket()

Properties

done Future
no setter
flush Future
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty Future<bool>
no setter
isNotEmpty Future<bool>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Uint8List data) → void
addSteam(Stream<List<int>> stream) Future
close(ClientSocketDirection how) Future<void>
listen(void onData(Uint8List event)?, {Function? onError, void onDone()?, bool? cancelOnError}) StreamSubscription<Uint8List>
listenAsync(void onData(Uint8List event)?, {Function? onError, void onDone()?, bool? cancelOnError}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
write(List<int> data, [int offset = 0, int? count]) → void

Operators

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

Static Methods

connect(String host, int port, {Duration? timeout}) Future<ClientSocket>