FlutterSocket class Null safety

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

Constructors

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

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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 non-existent method or property is accessed.
inherited
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.
inherited
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

Operators

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

Constants

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