FlutterSocket class

@Class: FlutterSocket @Description: FlutterSocket class @author: waitwalker @Date: 2019-08-21


@Method: FlutterSocket() @Parameter: @ReturnType: @Description: create instance @author: waitwalker @Date: 2019-08-21


hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


connectListener(CallBackClosure closure) → dynamic
@Method: connectListener @Parameter: CallBackClosure closure @ReturnType: @Description: listen socket connect status @author: waitwalker @Date: 2019-08-21
createSocket(String host, int port, {dynamic timeout = 30}) Future<bool?>
@Method: createSocket @Parameter: null @ReturnType: Future
disconnectListener(CallBackClosure closure) → dynamic
@Method: disconnectListener @Parameter: CallBackClosure closure @ReturnType: @Description: listen socket disconnect status @author: waitwalker @Date: 2019-08-21
errorListener(CallBackClosure closure) → dynamic
@Method: errorListener @Parameter: CallBackClosure closure @ReturnType: @Description: listen socket errors @author: waitwalker @Date: 2019-08-21
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
receiveListener(CallBackClosure closure) → dynamic
@Method: receiveListener @Parameter: CallBackClosure closure @ReturnType: @Description: listen socket receive message status @author: waitwalker @Date: 2019-08-21
send(String message) Future<void>
@Method: send @Parameter: String message @ReturnType: @Description: send message @author: waitwalker @Date: 2019-08-21
toString() String
A string representation of this object.
tryConnect() Future<void>
@Method: tryConnect @Parameter: String host, int port, int timeout @ReturnType: Future
tryDisconnect() Future<void>
@Method: tryDisconnect @Parameter: null @ReturnType: null @Description: socket try disconnect @author: waitwalker @Date: 2019-08-21


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


connect_error → const String
Socket connect error
connected → const String
Socket connected
create_socket → const String
Create socket
disconnect → const String
Socket disconnect
error → const String
Socket error
receive_message → const String
Socket receive message
send_error → const String
Socket send error
send_message → const String
Socket send message
try_connect → const String
Socket try connect
try_disconnect → const String
Socket try disconnect